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

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

Issue 1745943003: exo: Add support for linux_dmabuf interface to wayland bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wayland-protocols-linux-dmabuf
Patch Set: Prime -> LinuxDMABuf Created 4 years, 9 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 | « components/exo.gypi ('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 "base/macros.h" 10 #include "base/macros.h"
(...skipping 27 matching lines...) Expand all
38 // Creates a new surface. 38 // Creates a new surface.
39 scoped_ptr<Surface> CreateSurface(); 39 scoped_ptr<Surface> CreateSurface();
40 40
41 // Creates a shared memory segment from |handle| of |size| with the 41 // Creates a shared memory segment from |handle| of |size| with the
42 // given |id|. This function takes ownership of |handle|. 42 // given |id|. This function takes ownership of |handle|.
43 scoped_ptr<SharedMemory> CreateSharedMemory( 43 scoped_ptr<SharedMemory> CreateSharedMemory(
44 const base::SharedMemoryHandle& handle, 44 const base::SharedMemoryHandle& handle,
45 size_t size); 45 size_t size);
46 46
47 #if defined(USE_OZONE) 47 #if defined(USE_OZONE)
48 // Creates a buffer for the prime fd. 48 // Creates a buffer for a Linux DMA-buf file descriptor.
49 scoped_ptr<Buffer> CreatePrimeBuffer(base::ScopedFD fd, 49 scoped_ptr<Buffer> CreateLinuxDMABufBuffer(base::ScopedFD fd,
50 const gfx::Size& size, 50 const gfx::Size& size,
51 gfx::BufferFormat format, 51 gfx::BufferFormat format,
52 int stride); 52 int stride);
53 #endif 53 #endif
54 54
55 // Creates a shell surface for an existing surface. 55 // Creates a shell surface for an existing surface.
56 scoped_ptr<ShellSurface> CreateShellSurface(Surface* surface); 56 scoped_ptr<ShellSurface> CreateShellSurface(Surface* surface);
57 57
58 // Creates a sub-surface for an existing surface. The sub-surface will be 58 // Creates a sub-surface for an existing surface. The sub-surface will be
59 // a child of |parent|. 59 // a child of |parent|.
60 scoped_ptr<SubSurface> CreateSubSurface(Surface* surface, Surface* parent); 60 scoped_ptr<SubSurface> CreateSubSurface(Surface* surface, Surface* parent);
61 61
62 private: 62 private:
63 DISALLOW_COPY_AND_ASSIGN(Display); 63 DISALLOW_COPY_AND_ASSIGN(Display);
64 }; 64 };
65 65
66 } // namespace exo 66 } // namespace exo
67 67
68 #endif // COMPONENTS_EXO_DISPLAY_H_ 68 #endif // COMPONENTS_EXO_DISPLAY_H_
OLDNEW
« no previous file with comments | « components/exo.gypi ('k') | components/exo/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698