Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(453)

Unified Diff: gpu/pgl/pgl.h

Issue 566021: [GPU] GLES2 lost context recovery (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/demos/framework/plugin.cc ('k') | gpu/pgl/pgl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/pgl/pgl.h
===================================================================
--- gpu/pgl/pgl.h (revision 37846)
+++ gpu/pgl/pgl.h (working copy)
@@ -8,13 +8,26 @@
#include "npapi.h"
#include "npapi_extensions.h"
+#define PGL_TRUE 1
+#define PGL_FALSE 0
+
#ifdef __cplusplus
extern "C" {
#endif
typedef void* PGLContext;
-typedef bool PGLBoolean;
+typedef unsigned int PGLBoolean;
+typedef int32 PGLInt;
+// These are the same error codes as used by EGL.
+enum {
+ PGL_SUCCESS = 0x3000,
+ PGL_NOT_INITIALIZED = 0x3001,
+ PGL_BAD_CONTEXT = 0x3006,
+ PGL_BAD_PARAMETER = 0x300C,
+ PGL_CONTEXT_LOST = 0x300E
+};
+
// Initialize the PGL library. This must have completed before any other PGL
// functions are invoked.
PGLBoolean pglInitialize();
@@ -40,6 +53,9 @@
// Destroy the given PGL context.
PGLBoolean pglDestroyContext(PGLContext pgl_context);
+// Return the current PGL error.
+PGLInt pglGetError();
+
#ifdef __cplusplus
} // extern "C"
#endif
« no previous file with comments | « gpu/demos/framework/plugin.cc ('k') | gpu/pgl/pgl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698