| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef COMPONENTS_EXO_DISPLAY_H_ | 5 #ifndef COMPONENTS_EXO_DISPLAY_H_ |
| 6 #define COMPONENTS_EXO_DISPLAY_H_ | 6 #define COMPONENTS_EXO_DISPLAY_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/shared_memory_handle.h" | 14 #include "base/memory/shared_memory_handle.h" |
| 15 | 15 |
| 16 #if defined(USE_OZONE) | 16 #if defined(USE_OZONE) |
| 17 #include "base/files/scoped_file.h" | 17 #include "base/files/scoped_file.h" |
| 18 #include "ui/gfx/buffer_types.h" | 18 #include "ui/gfx/buffer_types.h" |
| 19 #include "ui/gfx/geometry/size.h" | 19 #include "ui/gfx/geometry/size.h" |
| 20 #include "ui/gfx/native_pixmap_handle.h" | 20 #include "ui/gfx/native_pixmap_handle.h" |
| 21 #endif | 21 #endif |
| 22 | 22 |
| 23 namespace gfx { | 23 namespace gfx { |
| 24 class GpuFence; |
| 24 class Point; | 25 class Point; |
| 25 } | 26 } |
| 26 | 27 |
| 27 namespace exo { | 28 namespace exo { |
| 28 class NotificationSurface; | 29 class NotificationSurface; |
| 29 class NotificationSurfaceManager; | 30 class NotificationSurfaceManager; |
| 30 class SharedMemory; | 31 class SharedMemory; |
| 31 class ShellSurface; | 32 class ShellSurface; |
| 32 class SubSurface; | 33 class SubSurface; |
| 33 class Surface; | 34 class Surface; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 54 const base::SharedMemoryHandle& handle, | 55 const base::SharedMemoryHandle& handle, |
| 55 size_t size); | 56 size_t size); |
| 56 | 57 |
| 57 #if defined(USE_OZONE) | 58 #if defined(USE_OZONE) |
| 58 // Creates a buffer for a Linux DMA-buf file descriptor. | 59 // Creates a buffer for a Linux DMA-buf file descriptor. |
| 59 std::unique_ptr<Buffer> CreateLinuxDMABufBuffer( | 60 std::unique_ptr<Buffer> CreateLinuxDMABufBuffer( |
| 60 const gfx::Size& size, | 61 const gfx::Size& size, |
| 61 gfx::BufferFormat format, | 62 gfx::BufferFormat format, |
| 62 const std::vector<gfx::NativePixmapPlane>& planes, | 63 const std::vector<gfx::NativePixmapPlane>& planes, |
| 63 std::vector<base::ScopedFD>&& fds); | 64 std::vector<base::ScopedFD>&& fds); |
| 65 |
| 66 // Creates a GpuFence for a Linux fence file descriptor. |
| 67 std::unique_ptr<gfx::GpuFence> CreateLinuxFence(base::ScopedFD fd); |
| 64 #endif | 68 #endif |
| 65 | 69 |
| 66 // Creates a shell surface for an existing surface. | 70 // Creates a shell surface for an existing surface. |
| 67 std::unique_ptr<ShellSurface> CreateShellSurface(Surface* surface); | 71 std::unique_ptr<ShellSurface> CreateShellSurface(Surface* surface); |
| 68 | 72 |
| 69 // Creates a popup shell surface for an existing surface at |position| and | 73 // Creates a popup shell surface for an existing surface at |position| and |
| 70 // with |parent|. |position| is in |parent| surface local coordinates. | 74 // with |parent|. |position| is in |parent| surface local coordinates. |
| 71 std::unique_ptr<ShellSurface> CreatePopupShellSurface( | 75 std::unique_ptr<ShellSurface> CreatePopupShellSurface( |
| 72 Surface* surface, | 76 Surface* surface, |
| 73 ShellSurface* parent, | 77 ShellSurface* parent, |
| (...skipping 15 matching lines...) Expand all Loading... |
| 89 | 93 |
| 90 private: | 94 private: |
| 91 NotificationSurfaceManager* const notification_surface_manager_; | 95 NotificationSurfaceManager* const notification_surface_manager_; |
| 92 | 96 |
| 93 DISALLOW_COPY_AND_ASSIGN(Display); | 97 DISALLOW_COPY_AND_ASSIGN(Display); |
| 94 }; | 98 }; |
| 95 | 99 |
| 96 } // namespace exo | 100 } // namespace exo |
| 97 | 101 |
| 98 #endif // COMPONENTS_EXO_DISPLAY_H_ | 102 #endif // COMPONENTS_EXO_DISPLAY_H_ |
| OLD | NEW |