OLD | NEW |
| (Empty) |
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. | |
4 | |
5 #ifndef CC_APPEND_QUADS_DATA_H_ | |
6 #define CC_APPEND_QUADS_DATA_H_ | |
7 | |
8 #include "base/basictypes.h" | |
9 #include "cc/quads/render_pass.h" | |
10 | |
11 namespace cc { | |
12 | |
13 struct AppendQuadsData { | |
14 AppendQuadsData() | |
15 : hadOcclusionFromOutsideTargetSurface(false) | |
16 , hadIncompleteTile(false) | |
17 , numMissingTiles(0) | |
18 , renderPassId(0, 0) | |
19 { | |
20 } | |
21 | |
22 explicit AppendQuadsData(RenderPass::Id renderPassId) | |
23 : hadOcclusionFromOutsideTargetSurface(false) | |
24 , hadIncompleteTile(false) | |
25 , numMissingTiles(0) | |
26 , renderPassId(renderPassId) | |
27 { | |
28 } | |
29 | |
30 // Set by the QuadCuller. | |
31 bool hadOcclusionFromOutsideTargetSurface; | |
32 // Set by the layer appending quads. | |
33 bool hadIncompleteTile; | |
34 // Set by the layer appending quads. | |
35 int64 numMissingTiles; | |
36 // Given to the layer appending quads. | |
37 const RenderPass::Id renderPassId; | |
38 }; | |
39 | |
40 } | |
41 #endif // CC_APPEND_QUADS_DATA_H_ | |
OLD | NEW |