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 <unordered_map> | 9 #include <unordered_map> |
10 #include <vector> | 10 #include <vector> |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 DrawingFrame(); | 74 DrawingFrame(); |
75 ~DrawingFrame(); | 75 ~DrawingFrame(); |
76 gfx::Rect ComputeScissorRectForRenderPass() const; | 76 gfx::Rect ComputeScissorRectForRenderPass() const; |
77 | 77 |
78 const RenderPassList* render_passes_in_draw_order = nullptr; | 78 const RenderPassList* render_passes_in_draw_order = nullptr; |
79 const RenderPass* root_render_pass = nullptr; | 79 const RenderPass* root_render_pass = nullptr; |
80 const RenderPass* current_render_pass = nullptr; | 80 const RenderPass* current_render_pass = nullptr; |
81 const ScopedResource* current_texture = nullptr; | 81 const ScopedResource* current_texture = nullptr; |
82 | 82 |
83 gfx::Rect root_damage_rect; | 83 gfx::Rect root_damage_rect; |
| 84 std::vector<gfx::Rect> root_content_bounds; |
84 gfx::Size device_viewport_size; | 85 gfx::Size device_viewport_size; |
85 | 86 |
86 gfx::Transform projection_matrix; | 87 gfx::Transform projection_matrix; |
87 gfx::Transform window_matrix; | 88 gfx::Transform window_matrix; |
88 | 89 |
89 OverlayCandidateList overlay_list; | 90 OverlayCandidateList overlay_list; |
90 CALayerOverlayList ca_layer_overlay_list; | 91 CALayerOverlayList ca_layer_overlay_list; |
91 }; | 92 }; |
92 | 93 |
93 protected: | 94 protected: |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 gfx::ColorSpace reshape_device_color_space_; | 233 gfx::ColorSpace reshape_device_color_space_; |
233 bool reshape_has_alpha_ = false; | 234 bool reshape_has_alpha_ = false; |
234 bool reshape_use_stencil_ = false; | 235 bool reshape_use_stencil_ = false; |
235 | 236 |
236 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); | 237 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); |
237 }; | 238 }; |
238 | 239 |
239 } // namespace cc | 240 } // namespace cc |
240 | 241 |
241 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ | 242 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ |
OLD | NEW |