Flush in ~SkGpuDevice to unblock Skia roll
authorbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 21 Aug 2012 15:41:28 +0000 (15:41 +0000)
committerbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 21 Aug 2012 15:41:28 +0000 (15:41 +0000)
Review URL: http://codereview.appspot.com/6453160/

git-svn-id: http://skia.googlecode.com/svn/trunk@5213 2bbb7eff-a529-9590-31e7-b0007b416f81

src/gpu/SkGpuDevice.cpp

index 1eb9e49ee49942f306ee570e2eab82cccec5840e..15aa4698b73b29c1ed5f9fe1f25bf5149fa4c346 100644 (file)
@@ -262,6 +262,9 @@ SkGpuDevice::SkGpuDevice(GrContext* context,
 }
 
 SkGpuDevice::~SkGpuDevice() {
+    // FIXME: This flush should be removed after CSS filters in WebKit flush their SkCanvas
+    fContext->flush();
+
     if (fDrawProcs) {
         delete fDrawProcs;
     }