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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/containers/scoped_ptr_hash_map.h" | 10 #include "base/containers/scoped_ptr_hash_map.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 // This is the base class for code shared between the GL and software | 25 // This is the base class for code shared between the GL and software |
26 // renderer implementations. "Direct" refers to the fact that it does not | 26 // renderer implementations. "Direct" refers to the fact that it does not |
27 // delegate rendering to another compositor. | 27 // delegate rendering to another compositor. |
28 class CC_EXPORT DirectRenderer : public Renderer { | 28 class CC_EXPORT DirectRenderer : public Renderer { |
29 public: | 29 public: |
30 ~DirectRenderer() override; | 30 ~DirectRenderer() override; |
31 | 31 |
32 void DecideRenderPassAllocationsForFrame( | 32 void DecideRenderPassAllocationsForFrame( |
33 const RenderPassList& render_passes_in_draw_order) override; | 33 const RenderPassList& render_passes_in_draw_order) override; |
34 bool HasAllocatedResourcesForTesting(RenderPassId id) const override; | 34 bool HasAllocatedResourcesForTesting(RenderPassId id) const override; |
35 void DrawFrame(RenderPassList* render_passes_in_draw_order, | 35 DrawFrameResult DrawFrame(RenderPassList* render_passes_in_draw_order, |
36 float device_scale_factor, | 36 float device_scale_factor, |
37 const gfx::Rect& device_viewport_rect, | 37 const gfx::Rect& device_viewport_rect, |
38 const gfx::Rect& device_clip_rect, | 38 const gfx::Rect& device_clip_rect, |
39 bool disable_picture_quad_image_filtering) override; | 39 bool disable_picture_quad_image_filtering) override; |
40 | 40 |
41 struct CC_EXPORT DrawingFrame { | 41 struct CC_EXPORT DrawingFrame { |
42 DrawingFrame(); | 42 DrawingFrame(); |
43 ~DrawingFrame(); | 43 ~DrawingFrame(); |
44 | 44 |
45 const RenderPassList* render_passes_in_draw_order; | 45 const RenderPassList* render_passes_in_draw_order; |
46 const RenderPass* root_render_pass; | 46 const RenderPass* root_render_pass; |
47 const RenderPass* current_render_pass; | 47 const RenderPass* current_render_pass; |
48 const ScopedResource* current_texture; | 48 const ScopedResource* current_texture; |
49 | 49 |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 | 159 |
160 private: | 160 private: |
161 gfx::Vector2d enlarge_pass_texture_amount_; | 161 gfx::Vector2d enlarge_pass_texture_amount_; |
162 | 162 |
163 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); | 163 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); |
164 }; | 164 }; |
165 | 165 |
166 } // namespace cc | 166 } // namespace cc |
167 | 167 |
168 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ | 168 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ |
OLD | NEW |