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

Unified Diff: cc/test/layer_tree_host_common_test.cc

Issue 1908593002: cc : Stop pushing transform origin from Layer and LayerImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/layer_tree_host_common_test.h ('k') | cc/trees/damage_tracker_unittest.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.cc
diff --git a/cc/test/layer_tree_host_common_test.cc b/cc/test/layer_tree_host_common_test.cc
index 67201daeab925b14fbf89b161166f39c25ad30ec..f5d69958360082ab855c11bdab099b6c6f6ff58b 100644
--- a/cc/test/layer_tree_host_common_test.cc
+++ b/cc/test/layer_tree_host_common_test.cc
@@ -31,9 +31,9 @@ void LayerTreeHostCommonTestBase::SetLayerPropertiesForTesting(
const gfx::Size& bounds,
bool flatten_transform,
bool is_3d_sorted) {
- SetLayerPropertiesForTestingInternal(layer, transform, transform_origin,
- position, bounds, flatten_transform,
- is_3d_sorted);
+ SetLayerPropertiesForTestingInternal(layer, transform, position, bounds,
+ flatten_transform, is_3d_sorted);
+ layer->SetTransformOrigin(transform_origin);
}
void LayerTreeHostCommonTestBase::SetLayerPropertiesForTesting(
@@ -44,9 +44,9 @@ void LayerTreeHostCommonTestBase::SetLayerPropertiesForTesting(
const gfx::Size& bounds,
bool flatten_transform,
bool is_3d_sorted) {
- SetLayerPropertiesForTestingInternal(layer, transform, transform_origin,
- position, bounds, flatten_transform,
- is_3d_sorted);
+ SetLayerPropertiesForTestingInternal(layer, transform, position, bounds,
+ flatten_transform, is_3d_sorted);
+ layer->test_properties()->transform_origin = transform_origin;
}
void LayerTreeHostCommonTestBase::SetLayerPropertiesForTesting(
@@ -58,9 +58,9 @@ void LayerTreeHostCommonTestBase::SetLayerPropertiesForTesting(
bool flatten_transform,
bool is_3d_sorted,
bool create_render_surface) {
- SetLayerPropertiesForTestingInternal(layer, transform, transform_origin,
- position, bounds, flatten_transform,
- is_3d_sorted);
+ SetLayerPropertiesForTestingInternal(layer, transform, position, bounds,
+ flatten_transform, is_3d_sorted);
+ layer->test_properties()->transform_origin = transform_origin;
if (create_render_surface) {
layer->SetForceRenderSurface(true);
}
« no previous file with comments | « cc/test/layer_tree_host_common_test.h ('k') | cc/trees/damage_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698