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

Unified Diff: cc/quads/render_pass_id.h

Issue 1619363002: Add compile time checks against longs being used in IPC structs on 32 bit Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: one more per Dmitry Created 4 years, 11 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 5dff1e1f521ec51b9831cb70b14f09530aeacc2c..581268794f21d037411b2b25fc573ae738e43df2 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>
@@ -16,10 +17,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; }
« base/pickle.cc ('K') | « cc/quads/draw_quad.h ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698