Bug 910878 - Remove gl.blit-draw-not-copy preference. r=gal

This commit is contained in:
Kyle Huey 2013-12-05 09:37:37 -05:00
parent 4f3ab60319
commit a4bc193dab
2 changed files with 0 additions and 13 deletions

View File

@ -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);

View File

@ -30,8 +30,6 @@ class GLBlitHelper MOZ_FINAL
GLuint mTex2DBlit_Program;
GLuint mTex2DRectBlit_Program;
bool mTexBlit_UseDrawNotCopy;
void UseBlitProgram();
void SetBlitFramebufferForDestTexture(GLuint aTexture);