[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 { |
14 | AppendQuadsData() | ||||
[email protected] | cd57cc5a | 2012-10-12 22:43:41 | [diff] [blame] | 15 | : hadOcclusionFromOutsideTargetSurface(false) |
[email protected] | 650b3faf | 2013-02-06 01:48:29 | [diff] [blame] | 16 | , hadIncompleteTile(false) |
[email protected] | f2bbb4e | 2012-12-07 21:40:49 | [diff] [blame] | 17 | , numMissingTiles(0) |
[email protected] | cd57cc5a | 2012-10-12 22:43:41 | [diff] [blame] | 18 | , renderPassId(0, 0) |
19 | { | ||||
20 | } | ||||
21 | |||||
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 22 | explicit AppendQuadsData(RenderPass::Id renderPassId) |
[email protected] | cd57cc5a | 2012-10-12 22:43:41 | [diff] [blame] | 23 | : hadOcclusionFromOutsideTargetSurface(false) |
[email protected] | 650b3faf | 2013-02-06 01:48:29 | [diff] [blame] | 24 | , hadIncompleteTile(false) |
[email protected] | f2bbb4e | 2012-12-07 21:40:49 | [diff] [blame] | 25 | , numMissingTiles(0) |
[email protected] | cd57cc5a | 2012-10-12 22:43:41 | [diff] [blame] | 26 | , renderPassId(renderPassId) |
27 | { | ||||
28 | } | ||||
29 | |||||
30 | // Set by the QuadCuller. | ||||
31 | bool hadOcclusionFromOutsideTargetSurface; | ||||
32 | // Set by the layer appending quads. | ||||
[email protected] | 650b3faf | 2013-02-06 01:48:29 | [diff] [blame] | 33 | bool hadIncompleteTile; |
34 | // Set by the layer appending quads. | ||||
[email protected] | f2bbb4e | 2012-12-07 21:40:49 | [diff] [blame] | 35 | int64 numMissingTiles; |
[email protected] | cd57cc5a | 2012-10-12 22:43:41 | [diff] [blame] | 36 | // Given to the layer appending quads. |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 37 | const RenderPass::Id renderPassId; |
[email protected] | cd57cc5a | 2012-10-12 22:43:41 | [diff] [blame] | 38 | }; |
39 | |||||
40 | } | ||||
[email protected] | cc3cfaa | 2013-03-18 09:05:52 | [diff] [blame^] | 41 | #endif // CC_LAYERS_APPEND_QUADS_DATA_H_ |