Accidentally omitted this file from r1203, :(
authorbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 27 Apr 2011 21:00:02 +0000 (21:00 +0000)
committerbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 27 Apr 2011 21:00:02 +0000 (21:00 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@1204 2bbb7eff-a529-9590-31e7-b0007b416f81

src/gpu/SkGpuDevice.cpp

index 3d3bbb3104804ff88533ab8fd10f6c12938dbd84..9051f040fdd8edf767b29a8ac8a216dfecb11dc9 100644 (file)
@@ -327,7 +327,7 @@ void SkGpuDevice::gainFocus(SkCanvas* canvas, const SkMatrix& matrix,
     convert_matrixclip(fContext, matrix, clipStack, clip, this->getOrigin());
 
     if (fNeedClear) {
-        fContext->clear(0x0);
+        fContext->clear(NULL, 0x0);
         fNeedClear = false;
     }
 }
@@ -596,7 +596,7 @@ private:
 ///////////////////////////////////////////////////////////////////////////////
 
 void SkGpuDevice::clear(SkColor color) {
-    fContext->clear(color);
+    fContext->clear(NULL, color);
 }
 
 void SkGpuDevice::drawPaint(const SkDraw& draw, const SkPaint& paint) {