summaryrefslogtreecommitdiffstats
path: root/third_party
diff options
context:
space:
mode:
authorapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-29 22:02:36 +0000
committerapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-29 22:02:36 +0000
commitc77ea36637f9494c048f6c8035f3cf8a389da93d (patch)
treef1feccf837765ba30c4f46e11b8f7b0b996a5cbd /third_party
parent23fc99cca22572abe60eced18b90b5693c2f64f7 (diff)
downloadchromium_src-c77ea36637f9494c048f6c8035f3cf8a389da93d.zip
chromium_src-c77ea36637f9494c048f6c8035f3cf8a389da93d.tar.gz
chromium_src-c77ea36637f9494c048f6c8035f3cf8a389da93d.tar.bz2
Redesigned CommandBuffer and NPDevice3D interfaces.
All status is now in the Device3D context. It can be retreived with fewer IPC messages. It can be now be accessed off the main plugin thread, which is necessary to run OpenGL in another thread. TEST=none BUG=none Review URL: http://codereview.chromium.org/555020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37545 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rw-r--r--third_party/npapi/bindings/npapi_extensions.h20
1 files changed, 6 insertions, 14 deletions
diff --git a/third_party/npapi/bindings/npapi_extensions.h b/third_party/npapi/bindings/npapi_extensions.h
index c24cd99..c60a82a 100644
--- a/third_party/npapi/bindings/npapi_extensions.h
+++ b/third_party/npapi/bindings/npapi_extensions.h
@@ -271,20 +271,6 @@ typedef struct _NPDeviceContext3DConfig {
int32 commandBufferEntries;
} NPDeviceContext3DConfig;
-typedef enum {
- // The offset the command buffer service has read to.
- NPDeviceContext3DState_GetOffset,
- // The offset the plugin instance has written to.
- NPDeviceContext3DState_PutOffset,
- // The last token processed by the command buffer service.
- NPDeviceContext3DState_Token,
- // The most recent parse error. Getting this value resets the parse error
- // if it recoverable.
- NPDeviceContext3DState_ParseError,
- // Wether the command buffer has encountered an unrecoverable error.
- NPDeviceContext3DState_ErrorStatus
-} NPDeviceContext3DState;
-
typedef struct _NPDeviceContext3D
{
void* reserved;
@@ -298,6 +284,12 @@ typedef struct _NPDeviceContext3D
// Offset in command buffer writer has reached. Synchronized on flush.
int32 putOffset;
+
+ // Last processed token. Synchronized on flush.
+ int32 token;
+
+ // Error status. Synchronized on flush.
+ int32 error;
} NPDeviceContext3D;
/* Audio --------------------------------------------------------------------*/