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 "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 27 matching lines...) Expand all Loading... |
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_ |
OLD | NEW |