Hamfisted fix to drawLooper w/ 0 stages bug
authorrobertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Sun, 2 Jun 2013 16:47:06 +0000 (16:47 +0000)
committerrobertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Sun, 2 Jun 2013 16:47:06 +0000 (16:47 +0000)
https://codereview.chromium.org/16305002/

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

src/core/SkDrawLooper.cpp

index 79a3f01..bdf63e9 100644 (file)
@@ -35,6 +35,7 @@ void SkDrawLooper::computeFastBounds(const SkPaint& paint, const SkRect& src,
                                      SkRect* dst) {
     SkCanvas canvas;
 
+    *dst = src;
     this->init(&canvas);
     for (bool firstTime = true;; firstTime = false) {
         SkPaint p(paint);