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

Unified Diff: ui/compositor/compositor.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: ui/compositor/compositor.cc
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
index 325425cf47d40fce656615e85fdb60a1e79f7401..9fe50918f6285e2fd2552e84875c34fc6d0c0a1f 100644
--- a/ui/compositor/compositor.cc
+++ b/ui/compositor/compositor.cc
@@ -86,7 +86,7 @@ Compositor::Compositor(gfx::AcceleratedWidget widget,
swap_state_(SWAP_NONE),
schedule_draw_factory_(this) {
root_web_layer_ = cc::Layer::Create();
- root_web_layer_->SetAnchorPoint(gfx::PointF(0.f, 0.f));
+ root_web_layer_->SetTransformOrigin(gfx::Point3F(0.f, 0.f, 0.f));
CommandLine* command_line = CommandLine::ForCurrentProcess();

Powered by Google App Engine
This is Rietveld 408576698