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

Unified Diff: cc/layers/render_surface_impl.cc

Issue 1517693002: Accelerated filters should filter unpadded primitives. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Do background rect outsetting before window intersection Created 4 years, 11 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/output/gl_renderer.h » ('j') | cc/output/gl_renderer.cc » ('J')
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 600206faa081522f815ead7ae6d41d0e912123d6..493adf9f70b539cf4a3d6d11e283219220f4b8e4 100644
--- a/cc/layers/render_surface_impl.cc
+++ b/cc/layers/render_surface_impl.cc
@@ -50,6 +50,11 @@ gfx::RectF RenderSurfaceImpl::DrawableContentRect() const {
drawable_content_rect.Union(MathUtil::MapClippedRect(
replica_draw_transform_, gfx::RectF(content_rect_)));
}
+ if (!owning_layer_->filters().IsEmpty()) {
+ int left, top, right, bottom;
+ owning_layer_->filters().GetOutsets(&top, &right, &bottom, &left);
+ drawable_content_rect.Inset(-left, -top, -right, -bottom);
+ }
// If the rect has a NaN coordinate, we return empty rect to avoid crashes in
// functions (for example, gfx::ToEnclosedRect) that are called on this rect.
« no previous file with comments | « no previous file | cc/output/gl_renderer.h » ('j') | cc/output/gl_renderer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698