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

Side by Side Diff: ui/ozone/platform/caca/ozone_platform_caca.cc

Issue 291473002: ozone: Initialize a subsystem only if necessary. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/ozone/platform/caca/ozone_platform_caca.h" 5 #include "ui/ozone/platform/caca/ozone_platform_caca.h"
6 6
7 #include "ui/base/cursor/ozone/cursor_factory_ozone.h" 7 #include "ui/base/cursor/ozone/cursor_factory_ozone.h"
8 #include "ui/ozone/ime/input_method_context_factory_ozone.h" 8 #include "ui/ozone/ime/input_method_context_factory_ozone.h"
9 #include "ui/ozone/ozone_platform.h" 9 #include "ui/ozone/ozone_platform.h"
10 #include "ui/ozone/platform/caca/caca_connection.h" 10 #include "ui/ozone/platform/caca/caca_connection.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 CacaEventFactory event_factory_ozone_; 54 CacaEventFactory event_factory_ozone_;
55 // This creates a minimal input context. 55 // This creates a minimal input context.
56 InputMethodContextFactoryOzone input_method_context_factory_ozone_; 56 InputMethodContextFactoryOzone input_method_context_factory_ozone_;
57 CursorFactoryOzone cursor_factory_ozone_; 57 CursorFactoryOzone cursor_factory_ozone_;
58 58
59 DISALLOW_COPY_AND_ASSIGN(OzonePlatformCaca); 59 DISALLOW_COPY_AND_ASSIGN(OzonePlatformCaca);
60 }; 60 };
61 61
62 } // namespace 62 } // namespace
63 63
64 OzonePlatform* CreateOzonePlatformCaca() { return new OzonePlatformCaca; } 64 OzonePlatform* CreateOzonePlatformCacaForUI() { return new OzonePlatformCaca; }
65 OzonePlatform* CreateOzonePlatformCacaForGPU() { return NULL; }
65 66
66 } // namespace ui 67 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698