diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-07 05:33:20 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-07 05:33:20 +0000 |
commit | 7ca87c2179917c73feae2f6183d2536dd6690623 (patch) | |
tree | e4bf36cdd3bb3045f82d1d921f760d70b7dc73d5 /ppapi/c/ppb_graphics_2d.h | |
parent | 187c54919b3af4cd6dec23d9ea3c1547417fe7be (diff) | |
download | chromium_src-7ca87c2179917c73feae2f6183d2536dd6690623.zip chromium_src-7ca87c2179917c73feae2f6183d2536dd6690623.tar.gz chromium_src-7ca87c2179917c73feae2f6183d2536dd6690623.tar.bz2 |
Add an instance parameter to var objects, audio, and the 2D API. This replaces the module in most cases.
This will be used in the proxy to multiplex one plugin across multiple renderer processes. We need the instance in the proxy to know which process to send it to.
I added a deprecated var object creation function for native client, which
depends on the module and this is very difficult to change. Because it doesn't
have the multiplexing requirements, this is fine for now.
TEST=ppapi ui tests
BUG=none
Review URL: http://codereview.chromium.org/6085009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70721 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/c/ppb_graphics_2d.h')
-rw-r--r-- | ppapi/c/ppb_graphics_2d.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/ppapi/c/ppb_graphics_2d.h b/ppapi/c/ppb_graphics_2d.h index 6daa16f..8a166a7 100644 --- a/ppapi/c/ppb_graphics_2d.h +++ b/ppapi/c/ppb_graphics_2d.h @@ -6,6 +6,7 @@ #define PPAPI_C_PPB_GRAPHICS_2D_H_ #include "ppapi/c/pp_bool.h" +#include "ppapi/c/pp_instance.h" #include "ppapi/c/pp_module.h" #include "ppapi/c/pp_resource.h" #include "ppapi/c/pp_stdint.h" @@ -15,7 +16,7 @@ struct PP_Point; struct PP_Rect; struct PP_Size; -#define PPB_GRAPHICS_2D_INTERFACE "PPB_Graphics2D;0.2" +#define PPB_GRAPHICS_2D_INTERFACE "PPB_Graphics2D;0.3" /** * @file @@ -28,10 +29,8 @@ struct PP_Size; /** {PENDING: describe PPB_Graphics2D. */ struct PPB_Graphics2D { /** - * The returned graphics context will not be bound to any plugin instance on - * creation (call BindGraphics on the plugin instance to do that. The - * graphics context has a lifetime that can exceed that of the given plugin - * instance. + * The returned graphics context will not be bound to the plugin instance on + * creation (call BindGraphics on the plugin instance to do that). * * Set the is_always_opaque flag if you know that you will be painting only * opaque data to this context. This will disable blending when compositing @@ -45,7 +44,7 @@ struct PPB_Graphics2D { * * If you aren't sure, it is always correct to specify that it it not opaque. */ - PP_Resource (*Create)(PP_Module module, + PP_Resource (*Create)(PP_Instance instance, const struct PP_Size* size, PP_Bool is_always_opaque); |