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

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

Issue 406093002: ozone: Remove GetAcceleratedWidget from SurfaceFactoryOzone (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 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/dri/ozone_platform_gbm.h" 5 #include "ui/ozone/platform/dri/ozone_platform_gbm.h"
6 6
7 #include <dlfcn.h> 7 #include <dlfcn.h>
8 #include <gbm.h> 8 #include <gbm.h>
9 #include <stdlib.h> 9 #include <stdlib.h>
10 10
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 } 90 }
91 virtual GpuPlatformSupport* GetGpuPlatformSupport() OVERRIDE { 91 virtual GpuPlatformSupport* GetGpuPlatformSupport() OVERRIDE {
92 return gpu_platform_support_.get(); 92 return gpu_platform_support_.get();
93 } 93 }
94 virtual GpuPlatformSupportHost* GetGpuPlatformSupportHost() OVERRIDE { 94 virtual GpuPlatformSupportHost* GetGpuPlatformSupportHost() OVERRIDE {
95 return gpu_platform_support_host_.get(); 95 return gpu_platform_support_host_.get();
96 } 96 }
97 virtual scoped_ptr<PlatformWindow> CreatePlatformWindow( 97 virtual scoped_ptr<PlatformWindow> CreatePlatformWindow(
98 PlatformWindowDelegate* delegate, 98 PlatformWindowDelegate* delegate,
99 const gfx::Rect& bounds) OVERRIDE { 99 const gfx::Rect& bounds) OVERRIDE {
100 return scoped_ptr<PlatformWindow>(new DriWindow(delegate, bounds)); 100 return scoped_ptr<PlatformWindow>(
101 new DriWindow(delegate, bounds, surface_factory_ozone_.get()));
101 } 102 }
102 #if defined(OS_CHROMEOS) 103 #if defined(OS_CHROMEOS)
103 virtual scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() 104 virtual scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate()
104 OVERRIDE { 105 OVERRIDE {
105 return scoped_ptr<NativeDisplayDelegate>(new NativeDisplayDelegateProxy( 106 return scoped_ptr<NativeDisplayDelegate>(new NativeDisplayDelegateProxy(
106 gpu_platform_support_host_.get(), device_manager_.get())); 107 gpu_platform_support_host_.get(), device_manager_.get()));
107 } 108 }
108 virtual scoped_ptr<TouchscreenDeviceManager> 109 virtual scoped_ptr<TouchscreenDeviceManager>
109 CreateTouchscreenDeviceManager() OVERRIDE { 110 CreateTouchscreenDeviceManager() OVERRIDE {
110 return scoped_ptr<TouchscreenDeviceManager>( 111 return scoped_ptr<TouchscreenDeviceManager>(
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 } // namespace 171 } // namespace
171 172
172 OzonePlatform* CreateOzonePlatformGbm() { 173 OzonePlatform* CreateOzonePlatformGbm() {
173 return new OzonePlatformGbm(false); 174 return new OzonePlatformGbm(false);
174 } 175 }
175 OzonePlatform* CreateOzonePlatformGbmEglImage() { 176 OzonePlatform* CreateOzonePlatformGbmEglImage() {
176 return new OzonePlatformGbm(true); 177 return new OzonePlatformGbm(true);
177 } 178 }
178 179
179 } // namespace ui 180 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/ozone_platform_dri.cc ('k') | ui/ozone/platform/egltest/ozone_platform_egltest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698