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

Unified Diff: cc/quads/render_pass_id.h

Issue 1678623002: Switch cc::RenderPassId and cc::DrawQuad::Resources to use uint32_t instead of size_t. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 4 years, 10 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 a0d48ea82d39288cc0586b6d472c0e4074d9d190..68a2051df21c39e9904a984068f7604f6378c489 100644
--- a/cc/quads/render_pass_id.h
+++ b/cc/quads/render_pass_id.h
@@ -6,6 +6,7 @@
#define CC_QUADS_RENDER_PASS_ID_H_
#include <stddef.h>
+#include <stdint.h>
#include <tuple>
@@ -17,10 +18,11 @@ namespace cc {
class CC_EXPORT RenderPassId {
public:
int layer_id;
- size_t index;
+ uint32_t index;
RenderPassId() : layer_id(-1), index(0) {}
- RenderPassId(int layer_id, size_t index) : layer_id(layer_id), index(index) {}
+ RenderPassId(int layer_id, uint32_t index)
+ : layer_id(layer_id), index(index) {}
void* AsTracingId() const;
bool IsValid() const { return layer_id >= 0; }

Powered by Google App Engine
This is Rietveld 408576698