Chromium Code Reviews| Index: cc/playback/filter_display_item.cc |
| diff --git a/cc/playback/filter_display_item.cc b/cc/playback/filter_display_item.cc |
| index fbed01509c80ff21641cf5083e9321315af56329..ce558c8b493fd75f60ac93c34b75764c9f538e17 100644 |
| --- a/cc/playback/filter_display_item.cc |
| +++ b/cc/playback/filter_display_item.cc |
| @@ -43,9 +43,13 @@ void FilterDisplayItem::Raster(SkCanvas* canvas, |
| skia::RefPtr<SkImageFilter> image_filter = |
| RenderSurfaceFilters::BuildImageFilter( |
| filters_, gfx::SizeF(bounds_.width(), bounds_.height())); |
| +#ifdef SK_SAVE_LAYER_BOUNDS_ARE_FILTERED |
|
danakj
2015/08/27 18:34:02
leave a TODO pointing to the bug to remove this
Stephen White
2015/08/27 19:26:39
Done.
|
| SkRect boundaries; |
| image_filter->computeFastBounds( |
| SkRect::MakeWH(bounds_.width(), bounds_.height()), &boundaries); |
| +#else |
| + SkRect boundaries = SkRect::MakeWH(bounds_.width(), bounds_.height()); |
| +#endif |
| SkPaint paint; |
| paint.setXfermodeMode(SkXfermode::kSrcOver_Mode); |