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 : allow_tile_draw_quads(true), | 15 : had_occlusion_from_outside_target_surface(false), |
16 had_occlusion_from_outside_target_surface(false), | |
17 had_incomplete_tile(false), | 16 had_incomplete_tile(false), |
18 num_missing_tiles(0), | 17 num_missing_tiles(0), |
19 render_pass_id(0, 0) {} | 18 render_pass_id(0, 0) {} |
20 | 19 |
21 explicit AppendQuadsData(RenderPass::Id render_pass_id) | 20 explicit AppendQuadsData(RenderPass::Id render_pass_id) |
22 : allow_tile_draw_quads(true), | 21 : had_occlusion_from_outside_target_surface(false), |
23 had_occlusion_from_outside_target_surface(false), | |
24 had_incomplete_tile(false), | 22 had_incomplete_tile(false), |
25 num_missing_tiles(0), | 23 num_missing_tiles(0), |
26 render_pass_id(render_pass_id) {} | 24 render_pass_id(render_pass_id) {} |
27 | 25 |
28 // Set by LayerTreeHostImpl. | |
29 bool allow_tile_draw_quads; | |
30 // Set by the QuadCuller. | 26 // Set by the QuadCuller. |
31 bool had_occlusion_from_outside_target_surface; | 27 bool had_occlusion_from_outside_target_surface; |
32 // Set by the layer appending quads. | 28 // Set by the layer appending quads. |
33 bool had_incomplete_tile; | 29 bool had_incomplete_tile; |
34 // Set by the layer appending quads. | 30 // Set by the layer appending quads. |
35 int64 num_missing_tiles; | 31 int64 num_missing_tiles; |
36 // Given to the layer appending quads. | 32 // Given to the layer appending quads. |
37 const RenderPass::Id render_pass_id; | 33 const RenderPass::Id render_pass_id; |
38 }; | 34 }; |
39 | 35 |
40 } // namespace cc | 36 } // namespace cc |
41 #endif // CC_LAYERS_APPEND_QUADS_DATA_H_ | 37 #endif // CC_LAYERS_APPEND_QUADS_DATA_H_ |
OLD | NEW |