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