| 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 |
| 11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
| 12 #include "base/memory/shared_memory.h" | 12 #include "base/memory/shared_memory.h" |
| 13 #include "third_party/skia/include/core/SkSurface.h" | 13 #include "third_party/skia/include/core/SkSurface.h" |
| 14 #include "ui/gfx/vsync_provider.h" | 14 #include "ui/gfx/vsync_provider.h" |
| 15 #include "ui/ozone/common/egl_util.h" | 15 #include "ui/ozone/common/egl_util.h" |
| 16 #include "ui/ozone/platform/wayland/wayland_connection.h" | 16 #include "ui/ozone/platform/wayland/wayland_connection.h" |
| 17 #include "ui/ozone/platform/wayland/wayland_object.h" | 17 #include "ui/ozone/platform/wayland/wayland_object.h" |
| 18 #include "ui/ozone/platform/wayland/wayland_window.h" | 18 #include "ui/ozone/platform/wayland/wayland_window.h" |
| 19 #include "ui/ozone/public/surface_ozone_canvas.h" | 19 #include "ui/ozone/public/surface_ozone_canvas.h" |
| 20 #include "ui/ozone/public/surface_ozone_egl.h" | |
| 21 | 20 |
| 22 #if defined(USE_WAYLAND_EGL) | 21 #if defined(USE_WAYLAND_EGL) |
| 23 #include "ui/ozone/platform/wayland/gl_surface_wayland.h" | 22 #include "ui/ozone/platform/wayland/gl_surface_wayland.h" |
| 24 #endif | 23 #endif |
| 25 | 24 |
| 26 namespace ui { | 25 namespace ui { |
| 27 | 26 |
| 28 static void DeleteSharedMemory(void* pixels, void* context) { | 27 static void DeleteSharedMemory(void* pixels, void* context) { |
| 29 delete static_cast<base::SharedMemory*>(context); | 28 delete static_cast<base::SharedMemory*>(context); |
| 30 } | 29 } |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 scoped_refptr<NativePixmap> WaylandSurfaceFactory::CreateNativePixmapFromHandle( | 204 scoped_refptr<NativePixmap> WaylandSurfaceFactory::CreateNativePixmapFromHandle( |
| 206 gfx::AcceleratedWidget widget, | 205 gfx::AcceleratedWidget widget, |
| 207 gfx::Size size, | 206 gfx::Size size, |
| 208 gfx::BufferFormat format, | 207 gfx::BufferFormat format, |
| 209 const gfx::NativePixmapHandle& handle) { | 208 const gfx::NativePixmapHandle& handle) { |
| 210 NOTIMPLEMENTED(); | 209 NOTIMPLEMENTED(); |
| 211 return nullptr; | 210 return nullptr; |
| 212 } | 211 } |
| 213 | 212 |
| 214 } // namespace ui | 213 } // namespace ui |
| OLD | NEW |