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

Unified Diff: cc/layers/render_surface_impl.cc

Issue 2188873002: cc: Add mask target size to the effect tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/proto/property_tree.proto » ('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 10f39b0e52a82f8b70441285baa1fe8bc1e3c304..264a6de45abdbbfc2c055ee71dcc28d9c93e446d 100644
--- a/cc/layers/render_surface_impl.cc
+++ b/cc/layers/render_surface_impl.cc
@@ -396,8 +396,8 @@ void RenderSurfaceImpl::AppendQuads(RenderPass* render_pass,
MathUtil::ComputeTransform2dScaleComponents(owning_layer_draw_transform,
1.f);
gfx::SizeF unclipped_mask_target_size = gfx::ScaleSize(
- gfx::SizeF(owning_layer_->bounds()), owning_layer_draw_scale.x(),
- owning_layer_draw_scale.y());
+ gfx::SizeF(OwningEffectNode()->unscaled_mask_target_size),
+ owning_layer_draw_scale.x(), owning_layer_draw_scale.y());
mask_uv_scale = gfx::Vector2dF(1.0f / unclipped_mask_target_size.width(),
1.0f / unclipped_mask_target_size.height());
}
« no previous file with comments | « no previous file | cc/proto/property_tree.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698