Chromium Code Reviews| Index: cc/layers/render_surface_impl.cc |
| diff --git a/cc/layers/render_surface_impl.cc b/cc/layers/render_surface_impl.cc |
| index ed036f3933ea188c7d371e2f5244c6d9ef2f1809..d2e5a73673327eb2d5661cf9541ef856e61296aa 100644 |
| --- a/cc/layers/render_surface_impl.cc |
| +++ b/cc/layers/render_surface_impl.cc |
| @@ -75,9 +75,8 @@ gfx::RectF RenderSurfaceImpl::DrawableContentRect() const { |
| gfx::Rect surface_content_rect = content_rect(); |
| if (!owning_layer_->filters().IsEmpty()) { |
| - int left, top, right, bottom; |
| - owning_layer_->filters().GetOutsets(&top, &right, &bottom, &left); |
| - surface_content_rect.Inset(-left, -top, -right, -bottom); |
|
jbroman
2016/05/27 17:43:48
Output of the test before this patch:
[ RUN
|
| + surface_content_rect = |
| + owning_layer_->filters().MapRect(surface_content_rect, SkMatrix::I()); |
|
Stephen White
2016/06/01 17:17:38
Er, wait. Shouldn't we be using the filters_scale
jbroman
2016/06/01 19:38:00
I don't think so; I'd expect that the scale of fil
Stephen White
2016/06/01 22:13:12
It's not the rectangle that's the problem; it's th
jbroman
2016/06/06 17:16:59
Yes, but the rectangle isn't in device space yet a
|
| } |
| gfx::RectF drawable_content_rect = MathUtil::MapClippedRect( |
| draw_transform(), gfx::RectF(surface_content_rect)); |