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

Unified Diff: ppapi/c/ppb_graphics_2d.h

Issue 4310002: Make PPAPI headers compile with C compilers (gcc on Linux & Mac and MSVS on W... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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
« no previous file with comments | « ppapi/c/ppb_core.h ('k') | ppapi/c/ppb_image_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/c/ppb_graphics_2d.h
===================================================================
--- ppapi/c/ppb_graphics_2d.h (revision 65116)
+++ ppapi/c/ppb_graphics_2d.h (working copy)
@@ -5,6 +5,7 @@
#ifndef PPAPI_C_PPB_GRAPHICS_2D_H_
#define PPAPI_C_PPB_GRAPHICS_2D_H_
+#include "ppapi/c/pp_bool.h"
#include "ppapi/c/pp_module.h"
#include "ppapi/c/pp_resource.h"
#include "ppapi/c/pp_stdint.h"
@@ -14,7 +15,7 @@
struct PP_Rect;
struct PP_Size;
-#define PPB_GRAPHICS_2D_INTERFACE "PPB_Graphics2D;0.1"
+#define PPB_GRAPHICS_2D_INTERFACE "PPB_Graphics2D;0.2"
/**
* @file
@@ -46,23 +47,23 @@
*/
PP_Resource (*Create)(PP_Module module,
const struct PP_Size* size,
- bool is_always_opaque);
+ PP_Bool is_always_opaque);
/**
- * Returns true if the given resource is a valid Graphics2D, false if it
+ * Returns PP_TRUE if the given resource is a valid Graphics2D, PP_FALSE if it
* is an invalid resource or is a resource of another type.
*/
- bool (*IsGraphics2D)(PP_Resource resource);
+ PP_Bool (*IsGraphics2D)(PP_Resource resource);
/**
* Retrieves the configuration for the given graphics context, filling the
- * given values (which must not be NULL). On success, returns true. If the
+ * given values (which must not be NULL). On success, returns PP_TRUE. If the
* resource is invalid, the output parameters will be set to 0 and it will
- * return false.
+ * return PP_FALSE.
*/
- bool (*Describe)(PP_Resource graphics_2d,
- struct PP_Size* size,
- bool* is_always_opqaue);
+ PP_Bool (*Describe)(PP_Resource graphics_2d,
+ struct PP_Size* size,
+ PP_Bool* is_always_opqaue);
/**
* Enqueues a paint of the given image into the context. THIS HAS NO EFFECT
« no previous file with comments | « ppapi/c/ppb_core.h ('k') | ppapi/c/ppb_image_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698