[email protected] | 0fb2500 | 2012-10-12 07:20:02 | [diff] [blame] | 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 | ||||
3 | // found in the LICENSE file. | ||||
[email protected] | cd57cc5a | 2012-10-12 22:43:41 | [diff] [blame] | 4 | |
[email protected] | cc3cfaa | 2013-03-18 09:05:52 | [diff] [blame] | 5 | #ifndef CC_LAYERS_APPEND_QUADS_DATA_H_ |
6 | #define CC_LAYERS_APPEND_QUADS_DATA_H_ | ||||
[email protected] | cd57cc5a | 2012-10-12 22:43:41 | [diff] [blame] | 7 | |
[email protected] | f2bbb4e | 2012-12-07 21:40:49 | [diff] [blame] | 8 | #include "base/basictypes.h" |
[email protected] | 89e8267 | 2013-03-18 07:50:56 | [diff] [blame] | 9 | #include "cc/quads/render_pass.h" |
[email protected] | cd57cc5a | 2012-10-12 22:43:41 | [diff] [blame] | 10 | |
11 | namespace cc { | ||||
12 | |||||
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 13 | struct AppendQuadsData { |
[email protected] | e1e768f | 2013-03-26 08:48:09 | [diff] [blame] | 14 | AppendQuadsData() |
15 | : had_occlusion_from_outside_target_surface(false), | ||||
16 | had_incomplete_tile(false), | ||||
17 | num_missing_tiles(0), | ||||
18 | render_pass_id(0, 0) {} | ||||
[email protected] | cd57cc5a | 2012-10-12 22:43:41 | [diff] [blame] | 19 | |
[email protected] | e1e768f | 2013-03-26 08:48:09 | [diff] [blame] | 20 | explicit AppendQuadsData(RenderPass::Id render_pass_id) |
21 | : had_occlusion_from_outside_target_surface(false), | ||||
22 | had_incomplete_tile(false), | ||||
23 | num_missing_tiles(0), | ||||
24 | render_pass_id(render_pass_id) {} | ||||
[email protected] | cd57cc5a | 2012-10-12 22:43:41 | [diff] [blame] | 25 | |
[email protected] | e1e768f | 2013-03-26 08:48:09 | [diff] [blame] | 26 | // Set by the QuadCuller. |
27 | bool had_occlusion_from_outside_target_surface; | ||||
28 | // Set by the layer appending quads. | ||||
29 | bool had_incomplete_tile; | ||||
30 | // Set by the layer appending quads. | ||||
31 | int64 num_missing_tiles; | ||||
32 | // Given to the layer appending quads. | ||||
33 | const RenderPass::Id render_pass_id; | ||||
[email protected] | cd57cc5a | 2012-10-12 22:43:41 | [diff] [blame] | 34 | }; |
35 | |||||
[email protected] | bf691c2 | 2013-03-26 21:15:06 | [diff] [blame^] | 36 | } // namespace cc |
[email protected] | cc3cfaa | 2013-03-18 09:05:52 | [diff] [blame] | 37 | #endif // CC_LAYERS_APPEND_QUADS_DATA_H_ |