Bug 802518; add Painted() to BasicShadowableCanvasLayer::Paint; r=jgilbert DONTBUILD
authorNicholas Cameron <ncameron@mozilla.com>
Thu, 18 Oct 2012 21:40:32 +1300
changeset 110774 5378ee5b79b22a6907fcaa9157cf33581a9b373c
parent 110773 feeaf869c460e617aea11e2448ba57986d73a683
child 110775 3d48c911df8d7cda4de0bb189d08290cf19b053f
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
reviewersjgilbert
bugs802518
milestone19.0a1
Bug 802518; add Painted() to BasicShadowableCanvasLayer::Paint; r=jgilbert DONTBUILD
gfx/layers/basic/BasicCanvasLayer.cpp
--- a/gfx/layers/basic/BasicCanvasLayer.cpp
+++ b/gfx/layers/basic/BasicCanvasLayer.cpp
@@ -411,16 +411,18 @@ BasicShadowableCanvasLayer::Paint(gfxCon
       handle = mGLContext->CreateSharedHandle(flags);
       if (handle) {
         mBackBuffer = SharedTextureDescriptor(flags, handle, mBounds.Size(), false);
       }
     }
     if (handle) {
       mGLContext->MakeCurrent();
       mGLContext->UpdateSharedHandle(flags, handle);
+      // call Painted() to reset our dirty 'bit'
+      Painted();
       FireDidTransactionCallback();
       BasicManager()->PaintedCanvas(BasicManager()->Hold(this),
                                     mNeedsYFlip,
                                     mBackBuffer);
       // Move SharedTextureHandle ownership to ShadowLayer
       mBackBuffer = SurfaceDescriptor();
       return;
     }