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

Unified Diff: cc/test/layer_tree_host_common_test.h

Issue 295193002: Get rid of graphics layer anchor points, and replace with transform origin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nit. Created 6 years, 6 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 | « cc/test/fake_picture_layer.cc ('k') | cc/test/layer_tree_host_common_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/layer_tree_host_common_test.h
diff --git a/cc/test/layer_tree_host_common_test.h b/cc/test/layer_tree_host_common_test.h
index 896388e0086d736f5d0c5b8962c6eaa1b54cd59a..38dd85ac3518a188f8dc5e4d5ddc1297fb41c25e 100644
--- a/cc/test/layer_tree_host_common_test.h
+++ b/cc/test/layer_tree_host_common_test.h
@@ -13,6 +13,7 @@
namespace gfx {
class PointF;
+class Point3F;
class Size;
class Transform;
}
@@ -29,15 +30,16 @@ class LayerTreeHostCommonTestBase {
virtual ~LayerTreeHostCommonTestBase();
template <typename LayerType>
- void SetLayerPropertiesForTestingInternal(LayerType* layer,
- const gfx::Transform& transform,
- const gfx::PointF& anchor,
- const gfx::PointF& position,
- const gfx::Size& bounds,
- bool flatten_transform,
- bool is_3d_sorted) {
+ void SetLayerPropertiesForTestingInternal(
+ LayerType* layer,
+ const gfx::Transform& transform,
+ const gfx::Point3F& transform_origin,
+ const gfx::PointF& position,
+ const gfx::Size& bounds,
+ bool flatten_transform,
+ bool is_3d_sorted) {
layer->SetTransform(transform);
- layer->SetAnchorPoint(anchor);
+ layer->SetTransformOrigin(transform_origin);
layer->SetPosition(position);
layer->SetBounds(bounds);
layer->SetShouldFlattenTransform(flatten_transform);
@@ -46,7 +48,7 @@ class LayerTreeHostCommonTestBase {
void SetLayerPropertiesForTesting(Layer* layer,
const gfx::Transform& transform,
- const gfx::PointF& anchor,
+ const gfx::Point3F& transform_origin,
const gfx::PointF& position,
const gfx::Size& bounds,
bool flatten_transform,
@@ -54,7 +56,7 @@ class LayerTreeHostCommonTestBase {
void SetLayerPropertiesForTesting(LayerImpl* layer,
const gfx::Transform& transform,
- const gfx::PointF& anchor,
+ const gfx::Point3F& transform_origin,
const gfx::PointF& position,
const gfx::Size& bounds,
bool flatten_transform,
« no previous file with comments | « cc/test/fake_picture_layer.cc ('k') | cc/test/layer_tree_host_common_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698