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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 // stores the values for the current render pass; in between draws, they | 153 // stores the values for the current render pass; in between draws, they |
154 // retain the values for the root render pass of the last draw. | 154 // retain the values for the root render pass of the last draw. |
155 gfx::Rect current_draw_rect_; | 155 gfx::Rect current_draw_rect_; |
156 gfx::Rect current_viewport_rect_; | 156 gfx::Rect current_viewport_rect_; |
157 gfx::Size current_surface_size_; | 157 gfx::Size current_surface_size_; |
158 gfx::Rect current_window_space_viewport_; | 158 gfx::Rect current_window_space_viewport_; |
159 | 159 |
160 private: | 160 private: |
161 gfx::Vector2d enlarge_pass_texture_amount_; | 161 gfx::Vector2d enlarge_pass_texture_amount_; |
162 | 162 |
163 // Regions that must be drawn in the next frame because they were represented | |
164 // as CALayers in the current frame. | |
165 gfx::Rect next_root_damage_rect_; | |
166 | |
167 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); | 163 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); |
168 }; | 164 }; |
169 | 165 |
170 } // namespace cc | 166 } // namespace cc |
171 | 167 |
172 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ | 168 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ |
OLD | NEW |