diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-23 17:15:38 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-23 17:15:38 +0000 |
commit | 7852a5066d2b6c1d552cb40cd918a39b1eee4de0 (patch) | |
tree | 62956fb9cbef939657a49c709ccfdc3877e1926b /cc/trees/layer_tree_host_common_unittest.cc | |
parent | 9c01c3700505881089954e65a3fed60d1b85b5fd (diff) | |
download | chromium_src-7852a5066d2b6c1d552cb40cd918a39b1eee4de0.zip chromium_src-7852a5066d2b6c1d552cb40cd918a39b1eee4de0.tar.gz chromium_src-7852a5066d2b6c1d552cb40cd918a39b1eee4de0.tar.bz2 |
Revert 224725 "Fix compilation and ui_unittests with float trans..."
Reverting as caused perf regression because of new static
initializers.
> Fix compilation and ui_unittests with float transforms
>
> This change also cleans up the use of gfx::Transform::get/setDouble
> (in favor of get/set) at callsites to prepare for changing SkMScalar
> from double to float.
>
> BUG=269817
>
> Review URL: https://chromiumcodereview.appspot.com/23811009
TBR=enne@chromium.org
Review URL: https://codereview.chromium.org/23537065
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224732 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/trees/layer_tree_host_common_unittest.cc')
-rw-r--r-- | cc/trees/layer_tree_host_common_unittest.cc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/cc/trees/layer_tree_host_common_unittest.cc b/cc/trees/layer_tree_host_common_unittest.cc index 6847f9c..5ce1034 100644 --- a/cc/trees/layer_tree_host_common_unittest.cc +++ b/cc/trees/layer_tree_host_common_unittest.cc @@ -343,7 +343,7 @@ TEST_F(LayerTreeHostCommonTest, TransformsForSingleLayer) { // Case 4: A change in actual position affects both the draw transform and // screen space transform. gfx::Transform position_transform; - position_transform.Translate(0.f, 1.2f); + position_transform.Translate(0.0, 1.2); SetLayerPropertiesForTesting(layer.get(), identity_matrix, identity_matrix, @@ -551,7 +551,7 @@ TEST_F(LayerTreeHostCommonTest, TransformsForSimpleHierarchy) { // Case 2: parent's position affects child and grand_child. gfx::Transform parent_position_transform; - parent_position_transform.Translate(0.f, 1.2f); + parent_position_transform.Translate(0.0, 1.2); SetLayerPropertiesForTesting(parent.get(), identity_matrix, identity_matrix, @@ -629,7 +629,7 @@ TEST_F(LayerTreeHostCommonTest, TransformsForSimpleHierarchy) { // does not preserve3D. When it gives its hierarchy to the grand_child, it // should be flattened to 2D. gfx::Transform parent_sublayer_matrix; - parent_sublayer_matrix.Scale3d(10.f, 10.f, 3.3f); + parent_sublayer_matrix.Scale3d(10.0, 10.0, 3.3); // Sublayer matrix is applied to the anchor point of the parent layer. parent_composite_transform = parent_translation_to_anchor * parent_layer_transform * @@ -730,11 +730,11 @@ TEST_F(LayerTreeHostCommonTest, TransformsForSingleRenderSurface) { child->SetForceRenderSurface(true); gfx::Transform parent_layer_transform; - parent_layer_transform.Scale3d(1.f, 0.9f, 1.f); + parent_layer_transform.Scale3d(1.0, 0.9, 1.0); gfx::Transform parent_translation_to_anchor; parent_translation_to_anchor.Translate(25.0, 30.0); gfx::Transform parent_sublayer_matrix; - parent_sublayer_matrix.Scale3d(0.9f, 1.f, 3.3f); + parent_sublayer_matrix.Scale3d(0.9, 1.0, 3.3); gfx::Transform parent_composite_transform = parent_translation_to_anchor * parent_layer_transform * @@ -876,8 +876,8 @@ TEST_F(LayerTreeHostCommonTest, SeparateRenderTargetRequirementWithClipping) { EXPECT_FALSE(grand_child->render_surface()); // One-time setup of root layer - parent_layer_transform.Scale3d(1.f, 0.9f, 1.f); - parent_sublayer_matrix.Scale3d(0.9f, 1.f, 3.3f); + parent_layer_transform.Scale3d(1.0, 0.9, 1.0); + parent_sublayer_matrix.Scale3d(0.9, 1.0, 3.3); child_layer_matrix.Rotate(20.0); SetLayerPropertiesForTesting(root.get(), @@ -948,8 +948,8 @@ TEST_F(LayerTreeHostCommonTest, EXPECT_FALSE(grand_child->render_surface()); // One-time setup of root layer - parent_layer_transform.Scale3d(1.f, 0.9f, 1.f); - parent_sublayer_matrix.Scale3d(0.9f, 1.f, 3.3f); + parent_layer_transform.Scale3d(1.0, 0.9, 1.0); + parent_sublayer_matrix.Scale3d(0.9, 1.0, 3.3); child_layer_matrix.Rotate(20.0); SetLayerPropertiesForTesting(root.get(), @@ -1024,7 +1024,7 @@ TEST_F(LayerTreeHostCommonTest, TransformsForReplica) { gfx::Transform parent_translation_to_anchor; parent_translation_to_anchor.Translate(2.5, 3.0); gfx::Transform parent_sublayer_matrix; - parent_sublayer_matrix.Scale3d(10.f, 10.f, 3.3f); + parent_sublayer_matrix.Scale3d(10.0, 10.0, 3.3); gfx::Transform parent_composite_transform = parent_translation_to_anchor * parent_layer_transform * Inverse(parent_translation_to_anchor) * parent_translation_to_anchor * @@ -6245,7 +6245,7 @@ TEST_F(LayerTreeHostCommonTest, SurfaceLayerTransformsInHighDPI) { perspective_matrix.ApplyPerspectiveDepth(2.0); gfx::Transform scale_small_matrix; - scale_small_matrix.Scale(SK_MScalar1 / 10.f, SK_MScalar1 / 12.f); + scale_small_matrix.Scale(1.0 / 10.0, 1.0 / 12.0); scoped_refptr<Layer> root = Layer::Create(); |