Index: native_client_sdk/src/libraries/ppapi_simple/ps_context_2d.h |
=================================================================== |
--- native_client_sdk/src/libraries/ppapi_simple/ps_context_2d.h (revision 218539) |
+++ native_client_sdk/src/libraries/ppapi_simple/ps_context_2d.h (working copy) |
@@ -34,10 +34,17 @@ |
* various PPAPI operations on the developer's behalf, such as processing view |
* change events, swapping buffers, etc... |
*/ |
-PSContext2D_t* PSContext2DAllocate(); |
+PSContext2D_t* PSContext2DAllocate(PP_ImageDataFormat format); |
void PSContext2DFree(PSContext2D_t* ctx); |
/* |
+ * PSContext2DGetNativeFormat |
+ * |
+ * Query the native system image format. |
+ */ |
+PP_ImageDataFormat PSContext2DGetNativeImageDataFormat(); |
+ |
+/* |
* PSContext2DHandleEvent |
* |
* Updates the context such as allocating, freeing, or sizing graphics and |