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

Unified Diff: cc/layers/surface_layer_impl.cc

Issue 2817833002: Replacing ScaleToEnclosedRect with ScaleToEnclosingRect (Closed)
Patch Set: Modified unit test to add test case that would fail without this patch Created 3 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/layers/surface_layer_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/surface_layer_impl.cc
diff --git a/cc/layers/surface_layer_impl.cc b/cc/layers/surface_layer_impl.cc
index 41ebcc5d33f5563d9a8489f4f1840181ce051c62..714e88bd0037c80bb14df677fbb97d60bec100c1 100644
--- a/cc/layers/surface_layer_impl.cc
+++ b/cc/layers/surface_layer_impl.cc
@@ -117,7 +117,7 @@ SurfaceDrawQuad* SurfaceLayerImpl::CreateSurfaceDrawQuad(
surface_info.device_scale_factor();
}
- visible_quad_rect = gfx::ScaleToEnclosedRect(
+ visible_quad_rect = gfx::ScaleToEnclosingRect(
visible_quad_rect, layer_to_content_scale_x, layer_to_content_scale_y);
visible_quad_rect = gfx::IntersectRects(quad_rect, visible_quad_rect);
« no previous file with comments | « no previous file | cc/layers/surface_layer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698