OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 CC_OUTPUT_DIRECT_RENDERER_H_ | 5 #ifndef CC_OUTPUT_DIRECT_RENDERER_H_ |
6 #define CC_OUTPUT_DIRECT_RENDERER_H_ | 6 #define CC_OUTPUT_DIRECT_RENDERER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 ResourceProvider* resource_provider); | 49 ResourceProvider* resource_provider); |
50 virtual ~DirectRenderer(); | 50 virtual ~DirectRenderer(); |
51 | 51 |
52 void Initialize(); | 52 void Initialize(); |
53 | 53 |
54 bool use_partial_swap() const { return use_partial_swap_; } | 54 bool use_partial_swap() const { return use_partial_swap_; } |
55 | 55 |
56 void SetVisible(bool visible); | 56 void SetVisible(bool visible); |
57 void DecideRenderPassAllocationsForFrame( | 57 void DecideRenderPassAllocationsForFrame( |
58 const RenderPassList& render_passes_in_draw_order); | 58 const RenderPassList& render_passes_in_draw_order); |
59 bool HasAllocatedResourcesForTesting(int render_pass_id) const; | 59 bool HasAllocatedResourcesForTesting(RenderPassId render_pass_id) const; |
60 void DrawFrame(RenderPassList* render_passes_in_draw_order, | 60 void DrawFrame(RenderPassList* render_passes_in_draw_order, |
61 float device_scale_factor, | 61 float device_scale_factor, |
62 const gfx::Size& device_viewport_size); | 62 const gfx::Size& device_viewport_size); |
63 | 63 |
64 // Public interface implemented by subclasses. | 64 // Public interface implemented by subclasses. |
65 virtual void SwapBuffers(std::vector<ui::LatencyInfo> latency_info) = 0; | 65 virtual void SwapBuffers(std::vector<ui::LatencyInfo> latency_info) = 0; |
66 virtual void SwapBuffersComplete() {} | 66 virtual void SwapBuffersComplete() {} |
67 virtual void DidReceiveTextureInUseResponses( | 67 virtual void DidReceiveTextureInUseResponses( |
68 const gpu::TextureInUseResponses& responses) {} | 68 const gpu::TextureInUseResponses& responses) {} |
69 | 69 |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 gfx::ColorSpace reshape_device_color_space_; | 257 gfx::ColorSpace reshape_device_color_space_; |
258 bool reshape_has_alpha_ = false; | 258 bool reshape_has_alpha_ = false; |
259 bool reshape_use_stencil_ = false; | 259 bool reshape_use_stencil_ = false; |
260 | 260 |
261 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); | 261 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); |
262 }; | 262 }; |
263 | 263 |
264 } // namespace cc | 264 } // namespace cc |
265 | 265 |
266 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ | 266 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ |
OLD | NEW |