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

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

Issue 2110213002: Revert of Add format modifier IDs for EGL_EXT_image_dma_buf_import extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « chrome/gpu/arc_gpu_video_decode_accelerator.cc ('k') | components/exo/display.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_ozone.h"
21 #endif 20 #endif
22 21
23 namespace gfx { 22 namespace gfx {
24 class Point; 23 class Point;
25 } 24 }
26 25
27 namespace exo { 26 namespace exo {
28 class NotificationSurface; 27 class NotificationSurface;
29 class NotificationSurfaceManager; 28 class NotificationSurfaceManager;
30 class SharedMemory; 29 class SharedMemory;
(...skipping 21 matching lines...) Expand all
52 // given |id|. This function takes ownership of |handle|. 51 // given |id|. This function takes ownership of |handle|.
53 std::unique_ptr<SharedMemory> CreateSharedMemory( 52 std::unique_ptr<SharedMemory> CreateSharedMemory(
54 const base::SharedMemoryHandle& handle, 53 const base::SharedMemoryHandle& handle,
55 size_t size); 54 size_t size);
56 55
57 #if defined(USE_OZONE) 56 #if defined(USE_OZONE)
58 // Creates a buffer for a Linux DMA-buf file descriptor. 57 // Creates a buffer for a Linux DMA-buf file descriptor.
59 std::unique_ptr<Buffer> CreateLinuxDMABufBuffer( 58 std::unique_ptr<Buffer> CreateLinuxDMABufBuffer(
60 const gfx::Size& size, 59 const gfx::Size& size,
61 gfx::BufferFormat format, 60 gfx::BufferFormat format,
62 const std::vector<gfx::NativePixmapPlane>& planes, 61 const std::vector<int>& strides,
62 const std::vector<int>& offsets,
63 std::vector<base::ScopedFD>&& fds); 63 std::vector<base::ScopedFD>&& fds);
64 #endif 64 #endif
65 65
66 // Creates a shell surface for an existing surface. 66 // Creates a shell surface for an existing surface.
67 std::unique_ptr<ShellSurface> CreateShellSurface(Surface* surface); 67 std::unique_ptr<ShellSurface> CreateShellSurface(Surface* surface);
68 68
69 // Creates a popup shell surface for an existing surface at |position| and 69 // Creates a popup shell surface for an existing surface at |position| and
70 // with |parent|. |position| is in |parent| surface local coordinates. 70 // with |parent|. |position| is in |parent| surface local coordinates.
71 std::unique_ptr<ShellSurface> CreatePopupShellSurface( 71 std::unique_ptr<ShellSurface> CreatePopupShellSurface(
72 Surface* surface, 72 Surface* surface,
(...skipping 16 matching lines...) Expand all
89 89
90 private: 90 private:
91 NotificationSurfaceManager* const notification_surface_manager_; 91 NotificationSurfaceManager* const notification_surface_manager_;
92 92
93 DISALLOW_COPY_AND_ASSIGN(Display); 93 DISALLOW_COPY_AND_ASSIGN(Display);
94 }; 94 };
95 95
96 } // namespace exo 96 } // namespace exo
97 97
98 #endif // COMPONENTS_EXO_DISPLAY_H_ 98 #endif // COMPONENTS_EXO_DISPLAY_H_
OLDNEW
« no previous file with comments | « chrome/gpu/arc_gpu_video_decode_accelerator.cc ('k') | components/exo/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698