Chromium Code Reviews| 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 785542108fa5fa5d6f39d24aadf8628263ea487e..b1b1f8f9f895eceacb093f5c5984f6a4d64b31fc 100644 |
| --- a/cc/trees/layer_tree_host_common.cc |
| +++ b/cc/trees/layer_tree_host_common.cc |
| @@ -1409,8 +1409,9 @@ static void CalculateDrawPropertiesInternal( |
| // case, the render_surface re-parents the transforms. |
| 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()); |
| + SkMScalar one(1.0); |
|
danakj
2013/09/07 00:54:59
nit: use SK_MScalar1? or maybe not?
enne (OOO)
2013/09/07 01:25:18
Sure, done.
|
| + layer_draw_properties.target_space_transform.Scale( |
| + one / layer->contents_scale_x(), one / layer->contents_scale_y()); |
| // The layer's screen_space_transform represents the transform between root |
| // layer's "screen space" and local content space. |