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

Unified Diff: ppapi/c/pp_size.h

Issue 5674004: Add compile assertions to enforce the sizes of all structs and enums in the C... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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: ppapi/c/pp_size.h
===================================================================
--- ppapi/c/pp_size.h (revision 68603)
+++ ppapi/c/pp_size.h (working copy)
@@ -20,6 +20,7 @@
int32_t width;
int32_t height;
};
+PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_Size, 8);
PP_INLINE struct PP_Size PP_MakeSize(int32_t w, int32_t h) {
struct PP_Size ret;
« ppapi/c/dev/pp_video_dev.h ('K') | « ppapi/c/pp_resource.h ('k') | ppapi/c/pp_time.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698