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

Unified Diff: cc/layers/layer_perftest.cc

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/layers/layer_iterator_unittest.cc ('k') | cc/layers/layer_position_constraint_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_perftest.cc
diff --git a/cc/layers/layer_perftest.cc b/cc/layers/layer_perftest.cc
index a36f1f098503d86484af9b294226573b4280a447..1c4519a45fb40fe79850ef991f97145ca645d613 100644
--- a/cc/layers/layer_perftest.cc
+++ b/cc/layers/layer_perftest.cc
@@ -65,7 +65,7 @@ TEST_F(LayerPerfTest, PushPropertiesTo) {
layer_tree_host_->SetRootLayer(test_layer);
- float anchor_point_z = 0;
+ float transform_origin_z = 0;
bool scrollable = true;
bool contents_opaque = true;
bool double_sided = true;
@@ -76,7 +76,7 @@ TEST_F(LayerPerfTest, PushPropertiesTo) {
timer_.Reset();
do {
test_layer->SetNeedsDisplayRect(gfx::RectF(0.f, 0.f, 5.f, 5.f));
- test_layer->SetAnchorPointZ(anchor_point_z);
+ test_layer->SetTransformOrigin(gfx::Point3F(0.f, 0.f, transform_origin_z));
test_layer->SetContentsOpaque(contents_opaque);
test_layer->SetDoubleSided(double_sided);
test_layer->SetHideLayerAndSubtree(hide_layer_and_subtree);
@@ -85,7 +85,7 @@ TEST_F(LayerPerfTest, PushPropertiesTo) {
: Layer::INVALID_ID);
test_layer->PushPropertiesTo(impl_layer.get());
- anchor_point_z += 0.01f;
+ transform_origin_z += 0.01f;
scrollable = !scrollable;
contents_opaque = !contents_opaque;
double_sided = !double_sided;
« no previous file with comments | « cc/layers/layer_iterator_unittest.cc ('k') | cc/layers/layer_position_constraint_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698