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

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: . 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 "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/ozone_platform.h" 10 #include "ui/ozone/ozone_platform.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 public: 49 public:
50 OzonePlatformDri() 50 OzonePlatformDri()
51 : dri_(new DriWrapper(kDefaultGraphicsCardPath)), 51 : dri_(new DriWrapper(kDefaultGraphicsCardPath)),
52 surface_generator_(new DriSurfaceGenerator(dri_.get())), 52 surface_generator_(new DriSurfaceGenerator(dri_.get())),
53 screen_manager_(new ScreenManager(dri_.get(), 53 screen_manager_(new ScreenManager(dri_.get(),
54 surface_generator_.get())), 54 surface_generator_.get())),
55 device_manager_(CreateDeviceManager()) {} 55 device_manager_(CreateDeviceManager()) {}
56 virtual ~OzonePlatformDri() {} 56 virtual ~OzonePlatformDri() {}
57 57
58 // OzonePlatform: 58 // OzonePlatform:
59 virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() OVERRIDE { 59 virtual ui::SurfaceFactoryOzone* GetSurfaceFactoryOzone() OVERRIDE {
60 return surface_factory_ozone_.get(); 60 return surface_factory_ozone_.get();
61 } 61 }
62 virtual EventFactoryOzone* GetEventFactoryOzone() OVERRIDE { 62 virtual EventFactoryOzone* GetEventFactoryOzone() OVERRIDE {
63 return event_factory_ozone_.get(); 63 return event_factory_ozone_.get();
64 } 64 }
65 virtual CursorFactoryOzone* GetCursorFactoryOzone() OVERRIDE { 65 virtual CursorFactoryOzone* GetCursorFactoryOzone() OVERRIDE {
66 return cursor_factory_ozone_.get(); 66 return cursor_factory_ozone_.get();
67 } 67 }
68 #if defined(OS_CHROMEOS) 68 #if defined(OS_CHROMEOS)
69 virtual scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() 69 virtual scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate()
(...skipping 30 matching lines...) Expand all
100 scoped_ptr<EventFactoryEvdev> event_factory_ozone_; 100 scoped_ptr<EventFactoryEvdev> event_factory_ozone_;
101 101
102 DISALLOW_COPY_AND_ASSIGN(OzonePlatformDri); 102 DISALLOW_COPY_AND_ASSIGN(OzonePlatformDri);
103 }; 103 };
104 104
105 } // namespace 105 } // namespace
106 106
107 OzonePlatform* CreateOzonePlatformDri() { return new OzonePlatformDri; } 107 OzonePlatform* CreateOzonePlatformDri() { return new OzonePlatformDri; }
108 108
109 } // namespace ui 109 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698