Index: cc/quads/render_pass_id.h |
diff --git a/cc/quads/render_pass_id.h b/cc/quads/render_pass_id.h |
index 05541307a07eaca2b7c2c720255822aa3db3b104..ebf6387e73c1572a66cd8899a68dee28c2fd6690 100644 |
--- a/cc/quads/render_pass_id.h |
+++ b/cc/quads/render_pass_id.h |
@@ -14,9 +14,10 @@ namespace cc { |
class CC_EXPORT RenderPassId { |
public: |
int layer_id; |
- int index; |
+ size_t index; |
- RenderPassId(int layer_id, int index) : layer_id(layer_id), index(index) {} |
+ RenderPassId() : layer_id(-1), index(0) {} |
+ RenderPassId(int layer_id, size_t index) : layer_id(layer_id), index(index) {} |
void* AsTracingId() const; |
bool operator==(const RenderPassId& other) const { |