mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 910878 - Remove gl.blit-draw-not-copy preference. r=gal
This commit is contained in:
parent
4f3ab60319
commit
a4bc193dab
@ -20,9 +20,7 @@ GLBlitHelper::GLBlitHelper(GLContext* gl)
|
||||
, mTex2DRectBlit_FragShader(0)
|
||||
, mTex2DBlit_Program(0)
|
||||
, mTex2DRectBlit_Program(0)
|
||||
, mTexBlit_UseDrawNotCopy(false)
|
||||
{
|
||||
mTexBlit_UseDrawNotCopy = Preferences::GetBool("gl.blit-draw-not-copy", false);
|
||||
}
|
||||
|
||||
GLBlitHelper::~GLBlitHelper()
|
||||
@ -490,15 +488,6 @@ GLBlitHelper::BlitTextureToTexture(GLuint srcTex, GLuint destTex,
|
||||
MOZ_ASSERT(mGL->fIsTexture(srcTex));
|
||||
MOZ_ASSERT(mGL->fIsTexture(destTex));
|
||||
|
||||
if (mTexBlit_UseDrawNotCopy) {
|
||||
// Draw is texture->framebuffer
|
||||
ScopedFramebufferForTexture destWrapper(mGL, destTex, destTarget);
|
||||
|
||||
BlitTextureToFramebuffer(srcTex, destWrapper.FB(),
|
||||
srcSize, destSize, srcTarget);
|
||||
return;
|
||||
}
|
||||
|
||||
// Generally, just use the CopyTexSubImage path
|
||||
ScopedFramebufferForTexture srcWrapper(mGL, srcTex, srcTarget);
|
||||
|
||||
|
@ -30,8 +30,6 @@ class GLBlitHelper MOZ_FINAL
|
||||
GLuint mTex2DBlit_Program;
|
||||
GLuint mTex2DRectBlit_Program;
|
||||
|
||||
bool mTexBlit_UseDrawNotCopy;
|
||||
|
||||
void UseBlitProgram();
|
||||
void SetBlitFramebufferForDestTexture(GLuint aTexture);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user