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)); |