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

Unified Diff: gm/complexclip_blur_tiled.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 | « no previous file | gm/convexpolyclip.cpp » ('j') | src/core/SkCanvas.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/complexclip_blur_tiled.cpp
diff --git a/gm/complexclip_blur_tiled.cpp b/gm/complexclip_blur_tiled.cpp
index 979c7e7423fa81cfb6bcc62beea99d81b9adfe29..5aaa2c070eeb32d8cb8c20970853a5a9b9ee3aa7 100644
--- a/gm/complexclip_blur_tiled.cpp
+++ b/gm/complexclip_blur_tiled.cpp
@@ -33,10 +33,7 @@ protected:
SkPaint blurPaint;
blurPaint.setImageFilter(SkBlurImageFilter::Make(5.0f, 5.0f, nullptr));
const SkScalar tileSize = SkIntToScalar(128);
- SkRect bounds;
- if (!canvas->getClipBounds(&bounds)) {
- bounds.setEmpty();
- }
+ SkRect bounds = SkRect::MakeWH(WIDTH, HEIGHT);
int ts = SkScalarCeilToInt(tileSize);
SkImageInfo info = SkImageInfo::MakeN32Premul(ts, ts);
auto tileSurface(canvas->makeSurface(info));
« no previous file with comments | « no previous file | gm/convexpolyclip.cpp » ('j') | src/core/SkCanvas.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698