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

Unified Diff: cc/trees/layer_tree_host_common.cc

Issue 23440005: CC: Fix precision loss in scale reciprocal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_common.cc
diff --git a/cc/trees/layer_tree_host_common.cc b/cc/trees/layer_tree_host_common.cc
index dba7b506d8766c8363a1faed2d3bc6e813d6f253..c328497c467282fa8630bb9503ec83d741dfb935 100644
--- a/cc/trees/layer_tree_host_common.cc
+++ b/cc/trees/layer_tree_host_common.cc
@@ -1169,7 +1169,7 @@ static void CalculateDrawPropertiesInternal(
layer_draw_properties.target_space_transform = combined_transform;
// M[draw] = M[parent] * LT * S[layer2content]
layer_draw_properties.target_space_transform.Scale
- (1.f / layer->contents_scale_x(), 1.f / layer->contents_scale_y());
+ (1.0 / layer->contents_scale_x(), 1.0 / layer->contents_scale_y());
danakj 2013/08/27 02:28:49 The input to this function is a double (at the mom
// The layer's screen_space_transform represents the transform between root
// layer's "screen space" and local content space.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698