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

Side by Side Diff: ui/ozone/platform/dri/ozone_platform_dri.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/dri/ozone_platform_dri.h" 5 #include "ui/ozone/platform/dri/ozone_platform_dri.h"
6 6
7 #include "ui/events/ozone/device/device_manager.h" 7 #include "ui/events/ozone/device/device_manager.h"
8 #include "ui/events/ozone/evdev/cursor_delegate_evdev.h" 8 #include "ui/events/ozone/evdev/cursor_delegate_evdev.h"
9 #include "ui/events/ozone/evdev/event_factory_evdev.h" 9 #include "ui/events/ozone/evdev/event_factory_evdev.h"
10 #include "ui/ozone/ime/input_method_context_factory_ozone.h" 10 #include "ui/ozone/ime/input_method_context_factory_ozone.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 ui::CursorFactoryEvdevDri cursor_factory_ozone_; 71 ui::CursorFactoryEvdevDri cursor_factory_ozone_;
72 ui::EventFactoryEvdev event_factory_ozone_; 72 ui::EventFactoryEvdev event_factory_ozone_;
73 // This creates a minimal input context. 73 // This creates a minimal input context.
74 ui::InputMethodContextFactoryOzone input_method_context_factory_ozone_; 74 ui::InputMethodContextFactoryOzone input_method_context_factory_ozone_;
75 75
76 DISALLOW_COPY_AND_ASSIGN(OzonePlatformDri); 76 DISALLOW_COPY_AND_ASSIGN(OzonePlatformDri);
77 }; 77 };
78 78
79 } // namespace 79 } // namespace
80 80
81 OzonePlatform* CreateOzonePlatformDri() { return new OzonePlatformDri; } 81 OzonePlatform* CreateOzonePlatformDriForUI() { return new OzonePlatformDri; }
82 OzonePlatform* CreateOzonePlatformDriForGPU() { return NULL; }
82 83
83 } // namespace ui 84 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698