| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 ResourceProvider* resource_provider); | 46 ResourceProvider* resource_provider); |
| 47 virtual ~DirectRenderer(); | 47 virtual ~DirectRenderer(); |
| 48 | 48 |
| 49 void Initialize(); | 49 void Initialize(); |
| 50 | 50 |
| 51 bool use_partial_swap() const { return use_partial_swap_; } | 51 bool use_partial_swap() const { return use_partial_swap_; } |
| 52 | 52 |
| 53 void SetVisible(bool visible); | 53 void SetVisible(bool visible); |
| 54 void DecideRenderPassAllocationsForFrame( | 54 void DecideRenderPassAllocationsForFrame( |
| 55 const RenderPassList& render_passes_in_draw_order); | 55 const RenderPassList& render_passes_in_draw_order); |
| 56 bool HasAllocatedResourcesForTesting(int render_pass_id) const; | 56 bool HasAllocatedResourcesForTesting(RenderPassId render_pass_id) const; |
| 57 void DrawFrame(RenderPassList* render_passes_in_draw_order, | 57 void DrawFrame(RenderPassList* render_passes_in_draw_order, |
| 58 float device_scale_factor, | 58 float device_scale_factor, |
| 59 const gfx::Size& device_viewport_size); | 59 const gfx::Size& device_viewport_size); |
| 60 | 60 |
| 61 // Public interface implemented by subclasses. | 61 // Public interface implemented by subclasses. |
| 62 virtual void SwapBuffers(std::vector<ui::LatencyInfo> latency_info) = 0; | 62 virtual void SwapBuffers(std::vector<ui::LatencyInfo> latency_info) = 0; |
| 63 virtual void SwapBuffersComplete() {} | 63 virtual void SwapBuffersComplete() {} |
| 64 virtual void DidReceiveTextureInUseResponses( | 64 virtual void DidReceiveTextureInUseResponses( |
| 65 const gpu::TextureInUseResponses& responses) {} | 65 const gpu::TextureInUseResponses& responses) {} |
| 66 | 66 |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 gfx::ColorSpace reshape_device_color_space_; | 254 gfx::ColorSpace reshape_device_color_space_; |
| 255 bool reshape_has_alpha_ = false; | 255 bool reshape_has_alpha_ = false; |
| 256 bool reshape_use_stencil_ = false; | 256 bool reshape_use_stencil_ = false; |
| 257 | 257 |
| 258 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); | 258 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); |
| 259 }; | 259 }; |
| 260 | 260 |
| 261 } // namespace cc | 261 } // namespace cc |
| 262 | 262 |
| 263 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ | 263 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ |
| OLD | NEW |