| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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(); |
| 53 | 53 |
| 54 void Initialize(); | 54 void Initialize(); |
| 55 | 55 |
| 56 void BindFramebuffer(); | 56 void BindFramebuffer(); |
| 57 bool CanPartialDraw(const gfx::Rect& damage); |
| 57 void SwapBuffers(const gfx::Rect& damage); | 58 void SwapBuffers(const gfx::Rect& damage); |
| 58 void PageFlipComplete(); | 59 void PageFlipComplete(); |
| 59 void Reshape(const gfx::Size& size, | 60 void Reshape(const gfx::Size& size, |
| 60 float scale_factor, | 61 float scale_factor, |
| 61 const gfx::ColorSpace& color_space, | 62 const gfx::ColorSpace& color_space, |
| 62 bool use_stencil); | 63 bool use_stencil); |
| 63 | 64 |
| 64 void RecreateBuffers(); | 65 void RecreateBuffers(); |
| 65 | 66 |
| 66 uint32_t current_texture_id() const { | 67 uint32_t current_texture_id() const { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 GLHelper* gl_helper_; | 131 GLHelper* gl_helper_; |
| 131 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_; | 132 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_; |
| 132 gpu::SurfaceHandle surface_handle_; | 133 gpu::SurfaceHandle surface_handle_; |
| 133 | 134 |
| 134 DISALLOW_COPY_AND_ASSIGN(BufferQueue); | 135 DISALLOW_COPY_AND_ASSIGN(BufferQueue); |
| 135 }; | 136 }; |
| 136 | 137 |
| 137 } // namespace display_compositor | 138 } // namespace display_compositor |
| 138 | 139 |
| 139 #endif // COMPONENTS_DISPLAY_COMPOSITOR_BUFFER_QUEUE_H_ | 140 #endif // COMPONENTS_DISPLAY_COMPOSITOR_BUFFER_QUEUE_H_ |
| OLD | NEW |