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

Unified Diff: ui/aura/desktop.cc

Issue 8240006: Use a mocked compositor for unit tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ui/gfx/test/gfx_test_utils x4 Created 9 years, 2 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/desktop.cc
diff --git a/ui/aura/desktop.cc b/ui/aura/desktop.cc
index 6e6a07d794060b3192a62dd7a6637a933688b92b..d9a846ec7b9643a504d73647c04c7cab25d5fe2a 100644
--- a/ui/aura/desktop.cc
+++ b/ui/aura/desktop.cc
@@ -25,17 +25,14 @@ namespace aura {
// static
Desktop* Desktop::instance_ = NULL;
-// static
-ui::Compositor*(*Desktop::compositor_factory_)() = NULL;
-
Desktop::Desktop()
: delegate_(NULL),
host_(aura::DesktopHost::Create(gfx::Rect(200, 200, 1280, 1024))),
ALLOW_THIS_IN_INITIALIZER_LIST(schedule_paint_factory_(this)),
active_window_(NULL),
in_destructor_(false) {
- if (compositor_factory_) {
- compositor_ = (*Desktop::compositor_factory())();
+ if (ui::Compositor::compositor_factory()) {
+ compositor_ = (*ui::Compositor::compositor_factory())(this);
} else {
compositor_ = ui::Compositor::Create(this, host_->GetAcceleratedWidget(),
host_->GetSize());
« no previous file with comments | « ui/aura/desktop.h ('k') | ui/aura/test/aura_test_base.cc » ('j') | ui/gfx/test/gfx_test_utils.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698