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

Side by Side Diff: ui/ozone/platform/dri/ozone_platform_dri.cc

Issue 312393002: ozone: Move the factory interfaces into a common target. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge-r278697 Created 6 years, 6 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 "base/at_exit.h" 7 #include "base/at_exit.h"
8 #include "ui/events/ozone/device/device_manager.h" 8 #include "ui/events/ozone/device/device_manager.h"
9 #include "ui/events/ozone/evdev/cursor_delegate_evdev.h" 9 #include "ui/events/ozone/evdev/cursor_delegate_evdev.h"
10 #include "ui/events/ozone/evdev/event_factory_evdev.h" 10 #include "ui/events/ozone/evdev/event_factory_evdev.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 surface_generator_(new DriSurfaceGenerator(dri_.get())), 55 surface_generator_(new DriSurfaceGenerator(dri_.get())),
56 screen_manager_(new ScreenManager(dri_.get(), 56 screen_manager_(new ScreenManager(dri_.get(),
57 surface_generator_.get())), 57 surface_generator_.get())),
58 device_manager_(CreateDeviceManager()) { 58 device_manager_(CreateDeviceManager()) {
59 base::AtExitManager::RegisterTask( 59 base::AtExitManager::RegisterTask(
60 base::Bind(&base::DeletePointer<OzonePlatformDri>, this)); 60 base::Bind(&base::DeletePointer<OzonePlatformDri>, this));
61 } 61 }
62 virtual ~OzonePlatformDri() {} 62 virtual ~OzonePlatformDri() {}
63 63
64 // OzonePlatform: 64 // OzonePlatform:
65 virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() OVERRIDE { 65 virtual ui::SurfaceFactoryOzone* GetSurfaceFactoryOzone() OVERRIDE {
66 return surface_factory_ozone_.get(); 66 return surface_factory_ozone_.get();
67 } 67 }
68 virtual EventFactoryOzone* GetEventFactoryOzone() OVERRIDE { 68 virtual EventFactoryOzone* GetEventFactoryOzone() OVERRIDE {
69 return event_factory_ozone_.get(); 69 return event_factory_ozone_.get();
70 } 70 }
71 virtual CursorFactoryOzone* GetCursorFactoryOzone() OVERRIDE { 71 virtual CursorFactoryOzone* GetCursorFactoryOzone() OVERRIDE {
72 return cursor_factory_ozone_.get(); 72 return cursor_factory_ozone_.get();
73 } 73 }
74 #if defined(OS_CHROMEOS) 74 #if defined(OS_CHROMEOS)
75 virtual scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() 75 virtual scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate()
(...skipping 30 matching lines...) Expand all
106 scoped_ptr<EventFactoryEvdev> event_factory_ozone_; 106 scoped_ptr<EventFactoryEvdev> event_factory_ozone_;
107 107
108 DISALLOW_COPY_AND_ASSIGN(OzonePlatformDri); 108 DISALLOW_COPY_AND_ASSIGN(OzonePlatformDri);
109 }; 109 };
110 110
111 } // namespace 111 } // namespace
112 112
113 OzonePlatform* CreateOzonePlatformDri() { return new OzonePlatformDri; } 113 OzonePlatform* CreateOzonePlatformDri() { return new OzonePlatformDri; }
114 114
115 } // namespace ui 115 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/gbm_surface_factory.cc ('k') | ui/ozone/platform/dri/ozone_platform_gbm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698