Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Unified Diff: gm/imageblurtiled.cpp

Issue 2357273003: Do not set bounds on SkLiteRecorder
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gm/convexpolyclip.cpp ('k') | gm/shapes.cpp » ('j') | src/core/SkCanvas.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/imageblurtiled.cpp
diff --git a/gm/imageblurtiled.cpp b/gm/imageblurtiled.cpp
index 415fa7315a2501728c76fc63a480368e239995fb..fb7ee21e37e5794fe5940593dae5360d9a6b9af1 100644
--- a/gm/imageblurtiled.cpp
+++ b/gm/imageblurtiled.cpp
@@ -33,10 +33,7 @@ protected:
SkPaint paint;
paint.setImageFilter(SkBlurImageFilter::Make(fSigmaX, fSigmaY, nullptr));
const SkScalar tileSize = SkIntToScalar(128);
- SkRect bounds;
- if (!canvas->getClipBounds(&bounds)) {
- bounds.setEmpty();
- }
+ SkRect bounds = SkRect::MakeWH(WIDTH, HEIGHT);
for (SkScalar y = bounds.top(); y < bounds.bottom(); y += tileSize) {
for (SkScalar x = bounds.left(); x < bounds.right(); x += tileSize) {
canvas->save();
« no previous file with comments | « gm/convexpolyclip.cpp ('k') | gm/shapes.cpp » ('j') | src/core/SkCanvas.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698