diff options
author | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-20 00:56:25 +0000 |
---|---|---|
committer | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-20 00:56:25 +0000 |
commit | d717e03b637b8bd133db3fde5f3108b999a51a88 (patch) | |
tree | aca70991012a49441d24bbd201d894903ba05416 /gpu/pgl | |
parent | 5fe524efcaf51b401067d936b5ff331249dc99df (diff) | |
download | chromium_src-d717e03b637b8bd133db3fde5f3108b999a51a88.zip chromium_src-d717e03b637b8bd133db3fde5f3108b999a51a88.tar.gz chromium_src-d717e03b637b8bd133db3fde5f3108b999a51a88.tar.bz2 |
GPU plugin forwards repaint events to Pepper plugin.
WM_PAINT results in a call to Pepper repaint callback.
Implemented WM_ERASEBKGND to prevent flickering on repaint.
Implemented PGL_NO_CONTEXT (copied from EGL spec). This is already reviewed by alokp but unfortunately got entangled with this CL.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/571018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39530 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/pgl')
-rw-r--r-- | gpu/pgl/pgl.cc | 2 | ||||
-rw-r--r-- | gpu/pgl/pgl.h | 16 |
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 |