diff options
author | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-17 10:19:09 +0000 |
---|---|---|
committer | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-17 10:19:09 +0000 |
commit | c4485aad698e143020b8177d688005d1a1705223 (patch) | |
tree | e6fb0ddfda378597f540f5650851492e7b26b801 /gpu/GLES2 | |
parent | 40b2d96a694b5dcdf9883d7296c132115670e0a9 (diff) | |
download | chromium_src-c4485aad698e143020b8177d688005d1a1705223.zip chromium_src-c4485aad698e143020b8177d688005d1a1705223.tar.gz chromium_src-c4485aad698e143020b8177d688005d1a1705223.tar.bz2 |
Add a command to lose the context
BUG=166020
Review URL: https://chromiumcodereview.appspot.com/11568029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173441 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/GLES2')
-rw-r--r-- | gpu/GLES2/extensions/CHROMIUM/CHROMIUM_lose_context.txt | 55 | ||||
-rw-r--r-- | gpu/GLES2/gl2chromium.h | 1 |
2 files changed, 56 insertions, 0 deletions
diff --git a/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_lose_context.txt b/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_lose_context.txt new file mode 100644 index 0000000..a7ff30c --- /dev/null +++ b/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_lose_context.txt @@ -0,0 +1,55 @@ +Name + + CHROMIUM_lose_context + +Name Strings + + GL_CHROMIUM_lose_context + +Version + + Last Modifed Date: December 17, 2012 + +Dependencies + + OpenGL ES 2.0 is required. + +Overview + + This extension allows an application to force a lost context event. + This is useful for debugging that an app can correctly handle the context + becoming lost. + +Issues + + None + +New Tokens + + None + +New Procedures and Functions + + void LoseContextCHROMIUM (GLenum current, GLenum other) + + Causes the current context and all other contexts in the same share group + to become lost. <current> and <other> can each be one of: + + GL_GUILTY_CONTEXT_RESET_EXT + GL_INNOCENT_CONTEXT_RESET_EXT + GL_UNKNOWN_CONTEXT_RESET_EXT + + INVALID_ENUM is generated if <current> or <other> is not one of the values + mentioned above. + +Errors + + None. + +New State + + None. + +Revision History + + 12/17/2012 Documented the extension diff --git a/gpu/GLES2/gl2chromium.h b/gpu/GLES2/gl2chromium.h index 8598052..7cc84f0 100644 --- a/gpu/GLES2/gl2chromium.h +++ b/gpu/GLES2/gl2chromium.h @@ -227,6 +227,7 @@ #define glAsyncTexSubImage2DCHROMIUM GLES2_GET_FUN(AsyncTexSubImage2DCHROMIUM) #define glAsyncTexImage2DCHROMIUM GLES2_GET_FUN(AsyncTexImage2DCHROMIUM) #define glDiscardFramebufferEXT GLES2_GET_FUN(DiscardFramebufferEXT) +#define glLoseContextCHROMIUM GLES2_GET_FUN(LoseContextCHROMIUM) #endif // GPU_GLES2_GL2CHROMIUM_H_ |