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 22 matching lines...) Expand all Loading... |
33 virtual void DrawFrame(RenderPassList* render_passes_in_draw_order, | 33 virtual void DrawFrame(RenderPassList* render_passes_in_draw_order, |
34 float device_scale_factor, | 34 float device_scale_factor, |
35 const gfx::Rect& device_viewport_rect, | 35 const gfx::Rect& device_viewport_rect, |
36 const gfx::Rect& device_clip_rect, | 36 const gfx::Rect& device_clip_rect, |
37 bool disable_picture_quad_image_filtering) OVERRIDE; | 37 bool disable_picture_quad_image_filtering) OVERRIDE; |
38 | 38 |
39 struct CC_EXPORT DrawingFrame { | 39 struct CC_EXPORT DrawingFrame { |
40 DrawingFrame(); | 40 DrawingFrame(); |
41 ~DrawingFrame(); | 41 ~DrawingFrame(); |
42 | 42 |
| 43 const RenderPassList* render_passes_in_draw_order; |
43 const RenderPass* root_render_pass; | 44 const RenderPass* root_render_pass; |
44 const RenderPass* current_render_pass; | 45 const RenderPass* current_render_pass; |
45 const ScopedResource* current_texture; | 46 const ScopedResource* current_texture; |
46 | 47 |
47 gfx::Rect root_damage_rect; | 48 gfx::Rect root_damage_rect; |
48 gfx::Rect device_viewport_rect; | 49 gfx::Rect device_viewport_rect; |
49 gfx::Rect device_clip_rect; | 50 gfx::Rect device_clip_rect; |
50 | 51 |
51 gfx::Transform projection_matrix; | 52 gfx::Transform projection_matrix; |
52 gfx::Transform window_matrix; | 53 gfx::Transform window_matrix; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 | 132 |
132 private: | 133 private: |
133 gfx::Vector2d enlarge_pass_texture_amount_; | 134 gfx::Vector2d enlarge_pass_texture_amount_; |
134 | 135 |
135 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); | 136 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); |
136 }; | 137 }; |
137 | 138 |
138 } // namespace cc | 139 } // namespace cc |
139 | 140 |
140 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ | 141 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ |
OLD | NEW |