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

Unified Diff: cc/layers/render_surface_impl.cc

Issue 1647573002: cc cleanup: simplify mask_uv_scale and MaskUVRect(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/layers/render_surface_impl_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 8e6db1eed24d757d6f175512d1f9ff5ee7063a1f..8d8a95bbbc48511966b6ec1373c722d403e12167 100644
--- a/cc/layers/render_surface_impl.cc
+++ b/cc/layers/render_surface_impl.cc
@@ -237,9 +237,8 @@ void RenderSurfaceImpl::AppendQuads(RenderPass* render_pass,
gfx::SizeF unclipped_mask_target_size = gfx::ScaleSize(
gfx::SizeF(owning_layer_->bounds()), owning_layer_draw_scale.x(),
owning_layer_draw_scale.y());
- mask_uv_scale = gfx::Vector2dF(
- content_rect_.width() / unclipped_mask_target_size.width(),
- content_rect_.height() / unclipped_mask_target_size.height());
+ mask_uv_scale = gfx::Vector2dF(1.0f / unclipped_mask_target_size.width(),
+ 1.0f / unclipped_mask_target_size.height());
}
DCHECK(owning_layer_draw_transform.IsScale2d());
« no previous file with comments | « no previous file | cc/layers/render_surface_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698