diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-07 21:11:52 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-07 21:11:52 +0000 |
commit | f5cf88a21918e04a52c9aa7fc8e13ff24b7bf196 (patch) | |
tree | 3ec448569179f66949795be7dafc0cd2ec62f8d4 /third_party/npapi | |
parent | 886a17e3ef3bce4bed8318d9734e6a7ce09feee5 (diff) | |
download | chromium_src-f5cf88a21918e04a52c9aa7fc8e13ff24b7bf196.zip chromium_src-f5cf88a21918e04a52c9aa7fc8e13ff24b7bf196.tar.gz chromium_src-f5cf88a21918e04a52c9aa7fc8e13ff24b7bf196.tar.bz2 |
Refactor the pepper API implementation to make it more scalable as we add more
device types. Implement a stub of the 3D device API. Fix style in some of the
plugin related code.
TEST=run the pepper_test_plugin
BUG=none
Review URL: http://codereview.chromium.org/468012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33989 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/npapi')
-rw-r--r-- | third_party/npapi/bindings/npapi_extensions.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/third_party/npapi/bindings/npapi_extensions.h b/third_party/npapi/bindings/npapi_extensions.h index 7ca636d..f72a9aa 100644 --- a/third_party/npapi/bindings/npapi_extensions.h +++ b/third_party/npapi/bindings/npapi_extensions.h @@ -198,11 +198,6 @@ typedef struct _NPPepperEvent #define NPPepper2DDevice 1 -typedef enum _NPRenderType -{ - NPRenderGraphicsRGBA -} NPRenderType; - typedef struct _NPDeviceContext2DConfig { } NPDeviceContext2DConfig; @@ -228,4 +223,17 @@ typedef struct _NPDeviceContext2D } u; } NPDeviceContext2D; +/* 3D -----------------------------------------------------------------------*/ + +#define NPPepper3DDevice 2 + +typedef struct _NPDeviceContext3DConfig { +} NPDeviceContext3DConfig; + +typedef struct _NPDeviceContext3D +{ + void* buffer; + int32 bufferLength; +} NPDeviceContext3D; + #endif /* _NP_EXTENSIONS_H_ */ |