| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_DISPLAY_COMPOSITOR_BUFFER_QUEUE_H_ | 5 #ifndef COMPONENTS_DISPLAY_COMPOSITOR_BUFFER_QUEUE_H_ |
| 6 #define COMPONENTS_DISPLAY_COMPOSITOR_BUFFER_QUEUE_H_ | 6 #define COMPONENTS_DISPLAY_COMPOSITOR_BUFFER_QUEUE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <deque> | 10 #include <deque> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 namespace gles2 { | 30 namespace gles2 { |
| 31 class GLES2Interface; | 31 class GLES2Interface; |
| 32 } | 32 } |
| 33 } | 33 } |
| 34 | 34 |
| 35 namespace display_compositor { | 35 namespace display_compositor { |
| 36 | 36 |
| 37 class GLHelper; | 37 class GLHelper; |
| 38 | 38 |
| 39 // Provides a surface that manages its own buffers, backed by GpuMemoryBuffers | 39 // Provides a surface that manages its own buffers, backed by GpuMemoryBuffers |
| 40 // created using CHROMIUM_gpu_memory_buffer_image. Double/triple buffering is | 40 // created using CHROMIUM_image. Double/triple buffering is implemented |
| 41 // implemented internally. Doublebuffering occurs if PageFlipComplete is called | 41 // internally. Doublebuffering occurs if PageFlipComplete is called before the |
| 42 // before the next BindFramebuffer call, otherwise it creates extra buffers. | 42 // next BindFramebuffer call, otherwise it creates extra buffers. |
| 43 class DISPLAY_COMPOSITOR_EXPORT BufferQueue { | 43 class DISPLAY_COMPOSITOR_EXPORT BufferQueue { |
| 44 public: | 44 public: |
| 45 BufferQueue(gpu::gles2::GLES2Interface* gl, | 45 BufferQueue(gpu::gles2::GLES2Interface* gl, |
| 46 uint32_t texture_target, | 46 uint32_t texture_target, |
| 47 uint32_t internal_format, | 47 uint32_t internal_format, |
| 48 gfx::BufferFormat format, | 48 gfx::BufferFormat format, |
| 49 GLHelper* gl_helper, | 49 GLHelper* gl_helper, |
| 50 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, | 50 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, |
| 51 gpu::SurfaceHandle surface_handle); | 51 gpu::SurfaceHandle surface_handle); |
| 52 virtual ~BufferQueue(); | 52 virtual ~BufferQueue(); |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 GLHelper* gl_helper_; | 130 GLHelper* gl_helper_; |
| 131 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_; | 131 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_; |
| 132 gpu::SurfaceHandle surface_handle_; | 132 gpu::SurfaceHandle surface_handle_; |
| 133 | 133 |
| 134 DISALLOW_COPY_AND_ASSIGN(BufferQueue); | 134 DISALLOW_COPY_AND_ASSIGN(BufferQueue); |
| 135 }; | 135 }; |
| 136 | 136 |
| 137 } // namespace display_compositor | 137 } // namespace display_compositor |
| 138 | 138 |
| 139 #endif // COMPONENTS_DISPLAY_COMPOSITOR_BUFFER_QUEUE_H_ | 139 #endif // COMPONENTS_DISPLAY_COMPOSITOR_BUFFER_QUEUE_H_ |
| OLD | NEW |