diff options
author | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-03 23:27:43 +0000 |
---|---|---|
committer | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-03 23:27:43 +0000 |
commit | 9a298ada39103abf74e423519a9ee8251bbe0555 (patch) | |
tree | fe6229f2fe75a3d844408d9051cc3fa90dfe7fa8 /third_party/npapi | |
parent | 49a518aabe67f9366bc23d0142493cb6508d662d (diff) | |
download | chromium_src-9a298ada39103abf74e423519a9ee8251bbe0555.zip chromium_src-9a298ada39103abf74e423519a9ee8251bbe0555.tar.gz chromium_src-9a298ada39103abf74e423519a9ee8251bbe0555.tar.bz2 |
Added support for lost context recovery on the client side. None of our service side GL implementations actually report lost contexts (yet).
Added pglGetError to PGL library.
pglSwapBuffers returns false on a lost context or other non-recoverable error and pglGetError reports PGL_CONTEXT_LOST.
Updated demo plugins to reset their PGL contexts on context lost. Standalone plugins cannot currently recover from lost context because they don't use PGL.
Added error code to NPDeviceContext3D for lost context.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/566021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38039 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, 15 insertions, 0 deletions
diff --git a/third_party/npapi/bindings/npapi_extensions.h b/third_party/npapi/bindings/npapi_extensions.h index 1b775ba..b80e0bd 100644 --- a/third_party/npapi/bindings/npapi_extensions.h +++ b/third_party/npapi/bindings/npapi_extensions.h @@ -272,11 +272,26 @@ typedef struct _NPDeviceContext3DConfig { } NPDeviceContext3DConfig; typedef enum _NPDeviceContext3DError { + // No error has ocurred. NPDeviceContext3DError_NoError, + + // The size of a command was invalid. NPDeviceContext3DError_InvalidSize, + + // An offset was out of bounds. NPDeviceContext3DError_OutOfBounds, + + // A command was not recognized. NPDeviceContext3DError_UnknownCommand, + + // The arguments to a command were invalid. NPDeviceContext3DError_InvalidArguments, + + // The 3D context was lost, for example due to a power management event. The + // context must be destroyed and a new one created. + NPDeviceContext3DError_LostContext, + + // Any other error. NPDeviceContext3DError_GenericError } NPDeviceContext3DError; |