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

Unified Diff: cc/test/layer_tree_json_parser.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: Fixed. Created 6 years, 7 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
Index: cc/test/layer_tree_json_parser.cc
diff --git a/cc/test/layer_tree_json_parser.cc b/cc/test/layer_tree_json_parser.cc
index 6e3164ce9e40fb912d831d233980bea3b89c7c4c..ececc9ee48f321f6071396ae794bdc4a0b6176d5 100644
--- a/cc/test/layer_tree_json_parser.cc
+++ b/cc/test/layer_tree_json_parser.cc
@@ -86,7 +86,7 @@ scoped_refptr<Layer> ParseTreeFromValue(base::Value* val,
} else { // Type "Layer" or "unknown"
new_layer = Layer::Create();
}
- new_layer->SetAnchorPoint(gfx::Point());
+ new_layer->SetTransformOrigin(gfx::Point3F());
new_layer->SetPosition(gfx::PointF(position_x, position_y));
new_layer->SetBounds(gfx::Size(width, height));
new_layer->SetIsDrawable(draws_content);

Powered by Google App Engine
This is Rietveld 408576698