diff options
author | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-01 22:24:14 +0000 |
---|---|---|
committer | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-01 22:24:14 +0000 |
commit | f7a64eee4a7c9556a2199bebb4110f7cef9b6d3c (patch) | |
tree | 487908060385ef696fdcf5dc9078cbb4b5dcdf2b /third_party/npapi | |
parent | c0c4565b3c287e7aca0ed2b913f82a74155fb813 (diff) | |
download | chromium_src-f7a64eee4a7c9556a2199bebb4110f7cef9b6d3c.zip chromium_src-f7a64eee4a7c9556a2199bebb4110f7cef9b6d3c.tar.gz chromium_src-f7a64eee4a7c9556a2199bebb4110f7cef9b6d3c.tar.bz2 |
Renamed ParseError -> Error, parse_error -> error, kParseNoError -> kNoError, commandBufferEntries -> commandBufferSize.
Added NPDevice3DContextError enumeration.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/558054
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37751 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/npapi')
-rw-r--r-- | third_party/npapi/bindings/npapi_extensions.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/third_party/npapi/bindings/npapi_extensions.h b/third_party/npapi/bindings/npapi_extensions.h index c60a82a..f566b40 100644 --- a/third_party/npapi/bindings/npapi_extensions.h +++ b/third_party/npapi/bindings/npapi_extensions.h @@ -268,16 +268,25 @@ typedef struct _NPDeviceContext2D #define NPPepper3DDevice 2 typedef struct _NPDeviceContext3DConfig { - int32 commandBufferEntries; + int32 commandBufferSize; } NPDeviceContext3DConfig; +typedef enum _NPDeviceContext3DError { + NPDeviceContext3DError_NoError, + NPDeviceContext3DError_InvalidSize, + NPDeviceContext3DError_OutOfBounds, + NPDeviceContext3DError_UnknownCommand, + NPDeviceContext3DError_InvalidArguments, + NPDeviceContext3DError_GenericError, +} NPDeviceContext3DError; + typedef struct _NPDeviceContext3D { void* reserved; // Buffer in which commands are stored. void* commandBuffer; - int32 commandBufferEntries; + int32 commandBufferSize; // Offset in command buffer reader has reached. Synchronized on flush. int32 getOffset; @@ -289,7 +298,7 @@ typedef struct _NPDeviceContext3D int32 token; // Error status. Synchronized on flush. - int32 error; + NPDeviceContext3DError error; } NPDeviceContext3D; /* Audio --------------------------------------------------------------------*/ |