Bug 708124 - Remove unnecessary glFlushs from Layers - r=bjacob

This commit is contained in:
Jeff Gilbert 2011-12-16 14:24:46 -08:00
Родитель 31b31c80ce
Коммит 31be7199ca
3 изменённых файлов: 0 добавлений и 12 удалений

Просмотреть файл

@ -1140,10 +1140,6 @@ BasicCanvasLayer::UpdateSurface(gfxASurface* aDestSurface)
NS_ASSERTION(isurf->Stride() == mBounds.width * 4, "gfxImageSurface stride isn't what we expect!");
// We have to flush to ensure that any buffered GL operations are
// in the framebuffer before we read.
mGLContext->fFlush();
PRUint32 currentFramebuffer = 0;
mGLContext->fGetIntegerv(LOCAL_GL_FRAMEBUFFER_BINDING, (GLint*)&currentFramebuffer);

Просмотреть файл

@ -181,10 +181,6 @@ CanvasLayerD3D10::UpdateSurface()
mGLContext->MakeCurrent();
// We have to flush to ensure that any buffered GL operations are
// in the framebuffer before we read.
mGLContext->fFlush();
PRUint32 currentFramebuffer = 0;
mGLContext->fGetIntegerv(LOCAL_GL_FRAMEBUFFER_BINDING, (GLint*)&currentFramebuffer);

Просмотреть файл

@ -119,10 +119,6 @@ CanvasLayerD3D9::UpdateSurface()
mGLContext->MakeCurrent();
// We have to flush to ensure that any buffered GL operations are
// in the framebuffer before we read.
mGLContext->fFlush();
PRUint32 currentFramebuffer = 0;
mGLContext->fGetIntegerv(LOCAL_GL_FRAMEBUFFER_BINDING, (GLint*)&currentFramebuffer);