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

Unified Diff: ui/aura/root_window.cc

Issue 9297041: Merge Compositor and CompositorCC (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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/aura/root_window.cc
diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc
index a6a568b460cd52405226556cbb565190341ef780..43d43f1b653e28b79b5cf8dc4256ed31067aea0c 100644
--- a/ui/aura/root_window.cc
+++ b/ui/aura/root_window.cc
@@ -26,7 +26,6 @@
#include "ui/aura/window_delegate.h"
#include "ui/base/hit_test.h"
#include "ui/gfx/compositor/compositor.h"
-#include "ui/gfx/compositor/compositor_cc.h"
#include "ui/gfx/compositor/layer.h"
#include "ui/gfx/compositor/layer_animator.h"
@@ -437,8 +436,8 @@ RootWindow::RootWindow()
gfx::Screen::SetInstance(screen_);
last_mouse_location_ = host_->QueryMouseLocation();
- ui::CompositorCC::Initialize(false);
- compositor_ = ui::Compositor::Create(this, host_->GetAcceleratedWidget(),
+ ui::Compositor::Initialize(false);
+ compositor_ = new ui::Compositor(this, host_->GetAcceleratedWidget(),
host_->GetSize());
DCHECK(compositor_.get());
}
@@ -449,7 +448,7 @@ RootWindow::~RootWindow() {
compositor_ = NULL;
// An observer may have been added by an animation on the RootWindow.
layer()->GetAnimator()->RemoveObserver(this);
- ui::CompositorCC::Terminate();
+ ui::Compositor::Terminate();
if (instance_ == this)
instance_ = NULL;
}

Powered by Google App Engine
This is Rietveld 408576698