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

Side by Side Diff: components/display_compositor/buffer_queue.h

Issue 2776923003: cc: Partial draw without partial swap support. (Closed)
Patch Set: avoid BufferQueue::RecreateBuffer changes Created 3 years, 8 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 | « cc/test/pixel_test_output_surface.cc ('k') | components/display_compositor/buffer_queue.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 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
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
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_
OLDNEW
« no previous file with comments | « cc/test/pixel_test_output_surface.cc ('k') | components/display_compositor/buffer_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698