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

Unified Diff: gpu/pgl/pgl.h

Issue 549090: Added pglGetCurrentContext. Make gles2 implementation pointer global variable... (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/command_buffer/client/gles2_lib.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 36538)
+++ gpu/pgl/pgl.h (working copy)
@@ -8,16 +8,32 @@
#include "npapi.h"
#include "npapi_extensions.h"
+#ifdef __cplusplus
extern "C" {
+#endif
+
typedef void* PGLContext;
typedef bool PGLBoolean;
+// Create A PGL context from a Pepper 3D device context.
PGLContext pglCreateContext(NPP npp,
NPDevice* device,
NPDeviceContext3D* device_context);
+
+// Set the current PGL context for the calling thread.
PGLBoolean pglMakeCurrent(PGLContext pgl_context);
-PGLBoolean pglSwapBuffers();
+
+// Get the calling thread's current PGL context.
+PGLContext pglGetCurrentContext(void);
+
+// Display everything that has been rendered since the last call.
+PGLBoolean pglSwapBuffers(void);
+
+// Destroy the given PGL context.
PGLBoolean pglDestroyContext(PGLContext pgl_context);
+
+#ifdef __cplusplus
} // extern "C"
+#endif
#endif // GPU_PGL_PGL_H
« no previous file with comments | « gpu/command_buffer/client/gles2_lib.cc ('k') | gpu/pgl/pgl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698