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

Side by Side Diff: ui/ozone/platform/wayland/wayland_surface_factory.cc

Issue 2768343002: Change namespace from ui to gfx for NativePixmap related code (Closed)
Patch Set: Addressed sadrul's remark Created 3 years, 9 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/wayland/wayland_surface_factory.h" 5 #include "ui/ozone/platform/wayland/wayland_surface_factory.h"
6 6
7 #include <fcntl.h> 7 #include <fcntl.h>
8 #include <sys/mman.h> 8 #include <sys/mman.h>
9 #include <wayland-client.h> 9 #include <wayland-client.h>
10 10
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 switch (implementation) { 215 switch (implementation) {
216 case gl::kGLImplementationEGLGLES2: 216 case gl::kGLImplementationEGLGLES2:
217 return egl_implementation_.get(); 217 return egl_implementation_.get();
218 case gl::kGLImplementationOSMesaGL: 218 case gl::kGLImplementationOSMesaGL:
219 return osmesa_implementation_.get(); 219 return osmesa_implementation_.get();
220 default: 220 default:
221 return nullptr; 221 return nullptr;
222 } 222 }
223 } 223 }
224 224
225 scoped_refptr<NativePixmap> WaylandSurfaceFactory::CreateNativePixmap( 225 scoped_refptr<gfx::NativePixmap> WaylandSurfaceFactory::CreateNativePixmap(
226 gfx::AcceleratedWidget widget, 226 gfx::AcceleratedWidget widget,
227 gfx::Size size, 227 gfx::Size size,
228 gfx::BufferFormat format, 228 gfx::BufferFormat format,
229 gfx::BufferUsage usage) { 229 gfx::BufferUsage usage) {
230 NOTIMPLEMENTED(); 230 NOTIMPLEMENTED();
231 return nullptr; 231 return nullptr;
232 } 232 }
233 233
234 scoped_refptr<NativePixmap> WaylandSurfaceFactory::CreateNativePixmapFromHandle( 234 scoped_refptr<gfx::NativePixmap>
235 WaylandSurfaceFactory::CreateNativePixmapFromHandle(
235 gfx::AcceleratedWidget widget, 236 gfx::AcceleratedWidget widget,
236 gfx::Size size, 237 gfx::Size size,
237 gfx::BufferFormat format, 238 gfx::BufferFormat format,
238 const gfx::NativePixmapHandle& handle) { 239 const gfx::NativePixmapHandle& handle) {
239 NOTIMPLEMENTED(); 240 NOTIMPLEMENTED();
240 return nullptr; 241 return nullptr;
241 } 242 }
242 243
243 } // namespace ui 244 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/wayland/wayland_surface_factory.h ('k') | ui/ozone/platform/x11/client_native_pixmap_factory_x11.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698