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_LAYERS_APPEND_QUADS_DATA_H_ | 5 #ifndef CC_LAYERS_APPEND_QUADS_DATA_H_ |
6 #define CC_LAYERS_APPEND_QUADS_DATA_H_ | 6 #define CC_LAYERS_APPEND_QUADS_DATA_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "cc/quads/render_pass.h" | 9 #include "cc/quads/render_pass.h" |
10 | 10 |
11 namespace cc { | 11 namespace cc { |
12 | 12 |
13 struct AppendQuadsData { | 13 struct AppendQuadsData { |
14 AppendQuadsData() | 14 AppendQuadsData() |
15 : num_incomplete_tiles(0), | 15 : num_incomplete_tiles(0), |
| 16 num_incomplete_tiles_inside_activation_rect(0), |
16 num_missing_tiles(0), | 17 num_missing_tiles(0), |
| 18 num_missing_tiles_inside_activation_rect(0), |
17 visible_content_area(0), | 19 visible_content_area(0), |
18 approximated_visible_content_area(0), | 20 approximated_visible_content_area(0), |
19 render_pass_id(0, 0) {} | 21 render_pass_id(0, 0) {} |
20 | 22 |
21 explicit AppendQuadsData(RenderPass::Id render_pass_id) | 23 explicit AppendQuadsData(RenderPass::Id render_pass_id) |
22 : num_incomplete_tiles(0), | 24 : num_incomplete_tiles(0), |
| 25 num_incomplete_tiles_inside_activation_rect(0), |
23 num_missing_tiles(0), | 26 num_missing_tiles(0), |
| 27 num_missing_tiles_inside_activation_rect(0), |
24 visible_content_area(0), | 28 visible_content_area(0), |
25 approximated_visible_content_area(0), | 29 approximated_visible_content_area(0), |
26 render_pass_id(render_pass_id) {} | 30 render_pass_id(render_pass_id) {} |
27 | 31 |
28 // Set by the layer appending quads. | 32 // Set by the layer appending quads. |
29 int64 num_incomplete_tiles; | 33 int64 num_incomplete_tiles; |
| 34 // Set by the layer appending quads. Subset of |num_incomplete_tiles|. |
| 35 int64 num_incomplete_tiles_inside_activation_rect; |
30 // Set by the layer appending quads. | 36 // Set by the layer appending quads. |
31 int64 num_missing_tiles; | 37 int64 num_missing_tiles; |
| 38 // Set by the layer appending quads. Subset of |num_missing_tiles|. |
| 39 int64 num_missing_tiles_inside_activation_rect; |
32 // Set by the layer appending quads. | 40 // Set by the layer appending quads. |
33 int64 visible_content_area; | 41 int64 visible_content_area; |
34 // Set by the layer appending quads. | 42 // Set by the layer appending quads. |
35 int64 approximated_visible_content_area; | 43 int64 approximated_visible_content_area; |
36 // Given to the layer appending quads. | 44 // Given to the layer appending quads. |
37 const RenderPass::Id render_pass_id; | 45 const RenderPass::Id render_pass_id; |
38 }; | 46 }; |
39 | 47 |
40 } // namespace cc | 48 } // namespace cc |
41 #endif // CC_LAYERS_APPEND_QUADS_DATA_H_ | 49 #endif // CC_LAYERS_APPEND_QUADS_DATA_H_ |
OLD | NEW |