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

Side by Side Diff: components/exo/display.h

Issue 2404513002: exo: Implement zcr_linux_explicit_synchronization_v1
Patch Set: rebase, address review comments Created 4 years, 2 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 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
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 std::unique_ptr<gfx::GpuFence> CreateLinuxFence(
reveman 2016/10/12 19:20:19 nit: "// Creates a GpuFence for a Linux fence file
67 base::ScopedFD& fd
reveman 2016/10/12 19:20:19 nit: remove "&" as base::ScopedFD is preferably pa
68 );
64 #endif 69 #endif
65 70
66 // Creates a shell surface for an existing surface. 71 // Creates a shell surface for an existing surface.
67 std::unique_ptr<ShellSurface> CreateShellSurface(Surface* surface); 72 std::unique_ptr<ShellSurface> CreateShellSurface(Surface* surface);
68 73
69 // Creates a popup shell surface for an existing surface at |position| and 74 // Creates a popup shell surface for an existing surface at |position| and
70 // with |parent|. |position| is in |parent| surface local coordinates. 75 // with |parent|. |position| is in |parent| surface local coordinates.
71 std::unique_ptr<ShellSurface> CreatePopupShellSurface( 76 std::unique_ptr<ShellSurface> CreatePopupShellSurface(
72 Surface* surface, 77 Surface* surface,
73 ShellSurface* parent, 78 ShellSurface* parent,
(...skipping 15 matching lines...) Expand all
89 94
90 private: 95 private:
91 NotificationSurfaceManager* const notification_surface_manager_; 96 NotificationSurfaceManager* const notification_surface_manager_;
92 97
93 DISALLOW_COPY_AND_ASSIGN(Display); 98 DISALLOW_COPY_AND_ASSIGN(Display);
94 }; 99 };
95 100
96 } // namespace exo 101 } // namespace exo
97 102
98 #endif // COMPONENTS_EXO_DISPLAY_H_ 103 #endif // COMPONENTS_EXO_DISPLAY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698