| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |