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

Unified Diff: ppapi/c/pp_rect.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_rect.h
===================================================================
--- ppapi/c/pp_rect.h (revision 68603)
+++ ppapi/c/pp_rect.h (working copy)
@@ -22,6 +22,7 @@
struct PP_Point point;
struct PP_Size size;
};
+PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_Rect, 16);
PP_INLINE struct PP_Rect PP_MakeRectFromXYWH(int32_t x, int32_t y,
int32_t w, int32_t h) {
« ppapi/c/dev/pp_video_dev.h ('K') | « ppapi/c/pp_point.h ('k') | ppapi/c/pp_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698