summaryrefslogtreecommitdiffstats
path: root/gpu/pgl
diff options
context:
space:
mode:
authorapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-24 22:27:04 +0000
committerapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-24 22:27:04 +0000
commit8ceb44c74fc375df749b60acc6fc01b5327c6d18 (patch)
tree0512ef018e445f45d142e8a79ed4a19b9390b6d3 /gpu/pgl
parentc16b5958cc9a47992e6c24473258582773036af5 (diff)
downloadchromium_src-8ceb44c74fc375df749b60acc6fc01b5327c6d18.zip
chromium_src-8ceb44c74fc375df749b60acc6fc01b5327c6d18.tar.gz
chromium_src-8ceb44c74fc375df749b60acc6fc01b5327c6d18.tar.bz2
I just put the code that does not compile on ARM. Trybots will fail because I had to remove these from the CL to make gcl upload properly accept it.
A + base\scoped_open_process.h A + chrome\plugin\command_buffer_stub_win.cc TEST=try BUG=none Review URL: http://codereview.chromium.org/661022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39937 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/pgl')
-rw-r--r--gpu/pgl/pgl.cc2
-rw-r--r--gpu/pgl/pgl.h16
2 files changed, 10 insertions, 8 deletions
diff --git a/gpu/pgl/pgl.cc b/gpu/pgl/pgl.cc
index d357fe2..59c2635 100644
--- a/gpu/pgl/pgl.cc
+++ b/gpu/pgl/pgl.cc
@@ -223,7 +223,7 @@ PGLBoolean pglDestroyContext(PGLContext pgl_context) {
return PGL_FALSE;
if (pgl_context == pglGetCurrentContext())
- pglMakeCurrent(NULL);
+ pglMakeCurrent(PGL_NO_CONTEXT);
delete static_cast<PGLContextImpl*>(pgl_context);
return PGL_TRUE;
diff --git a/gpu/pgl/pgl.h b/gpu/pgl/pgl.h
index ac67ec1..118d6fe 100644
--- a/gpu/pgl/pgl.h
+++ b/gpu/pgl/pgl.h
@@ -8,8 +8,10 @@
#include "npapi.h"
#include "npapi_extensions.h"
-#define PGL_TRUE 1
-#define PGL_FALSE 0
+#define PGL_TRUE 1
+#define PGL_FALSE 0
+
+#define PGL_NO_CONTEXT ((PGLContext) 0)
#ifdef __cplusplus
extern "C" {
@@ -21,11 +23,11 @@ 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
+ 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