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

Unified Diff: cc/layers/render_surface_impl.cc

Issue 2018983003: cc: Use FilterOperations::MapRect in RenderSurfaceImpl::DrawableContentRect. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698