Bug 1259785: Do a proper flush when taking a snapshot so our dependent targets and command lists get appropriately cleared. r=jrmuizel
authorBas Schouten <bschouten@mozilla.com>
Thu, 31 Mar 2016 21:45:36 +0200
changeset 291244 db49ab7e9e4f1460553637b79eb91538a497a062
parent 291243 3b7387f7b46b1b284b28f6e6083d8b7d2414e2ba
child 291245 c79a34d5b3a3d8edce927f6a8a0d57cc7565a9dd
push id19656
push usergwagner@mozilla.com
push dateMon, 04 Apr 2016 13:43:23 +0000
treeherderb2g-inbound@e99061fde28a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel
bugs1259785
milestone48.0a1
Bug 1259785: Do a proper flush when taking a snapshot so our dependent targets and command lists get appropriately cleared. r=jrmuizel MozReview-Commit-ID: D49eFNRGD2V
gfx/2d/DrawTargetD2D1.cpp
--- a/gfx/2d/DrawTargetD2D1.cpp
+++ b/gfx/2d/DrawTargetD2D1.cpp
@@ -83,17 +83,17 @@ already_AddRefed<SourceSurface>
 DrawTargetD2D1::Snapshot()
 {
   if (mSnapshot) {
     RefPtr<SourceSurface> snapshot(mSnapshot);
     return snapshot.forget();
   }
   PopAllClips();
 
-  mDC->Flush();
+  Flush();
 
   mSnapshot = new SourceSurfaceD2D1(mBitmap, mDC, mFormat, mSize, this);
 
   RefPtr<SourceSurface> snapshot(mSnapshot);
   return snapshot.forget();
 }
 
 // Command lists are kept around by device contexts until EndDraw is called,