Index: cc/CCAppendQuadsData.h |
diff --git a/cc/CCAppendQuadsData.h b/cc/CCAppendQuadsData.h |
index 2a199672d707c1a4971d39673dea27d82d2ff322..b086de01a85269bb7a5581a2a6a07da581a3a5f9 100644 |
--- a/cc/CCAppendQuadsData.h |
+++ b/cc/CCAppendQuadsData.h |
@@ -5,12 +5,22 @@ |
#ifndef CCAppendQuadsData_h |
#define CCAppendQuadsData_h |
+#include "CCRenderPass.h" |
+ |
namespace cc { |
struct CCAppendQuadsData { |
CCAppendQuadsData() |
: hadOcclusionFromOutsideTargetSurface(false) |
, hadMissingTiles(false) |
+ , renderPassId(0, 0) |
+ { |
+ } |
+ |
+ explicit CCAppendQuadsData(CCRenderPass::Id renderPassId) |
+ : hadOcclusionFromOutsideTargetSurface(false) |
+ , hadMissingTiles(false) |
+ , renderPassId(renderPassId) |
{ |
} |
@@ -18,6 +28,8 @@ struct CCAppendQuadsData { |
bool hadOcclusionFromOutsideTargetSurface; |
// Set by the layer appending quads. |
bool hadMissingTiles; |
+ // Given to the layer appending quads. |
+ const CCRenderPass::Id renderPassId; |
}; |
} |