Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(281)

Unified Diff: cc/quads/render_pass_id.h

Issue 1158433010: Reland: cc: Fix size_t to int truncations in layers/ output/ playback/ quads/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 {

Powered by Google App Engine
This is Rietveld 408576698