Adding this call simulates seeing a *different* bitmap every time we scale, which...
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 6 Mar 2014 17:16:37 +0000 (17:16 +0000)
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 6 Mar 2014 17:16:37 +0000 (17:16 +0000)
This change will cause significant regressions in microbenchmark scores.

BUG=skia:2236
R=humper@google.com, reed@google.com, scroggo@google.com, tomhudson@google.com

Author: tomhudson@chromium.org

Review URL: https://codereview.chromium.org/183763047

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

bench/BitmapScaleBench.cpp

index 926111d..f6c2da1 100644 (file)
@@ -97,6 +97,7 @@ protected:
         SkPaint paint;
 
         paint.setFilterLevel(SkPaint::kHigh_FilterLevel);
+        fInputBitmap.notifyPixelsChanged();
         canvas.drawBitmapMatrix( fInputBitmap, fMatrix, &paint );
     }
 private: