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

Unified Diff: chrome/renderer/ggl/ggl.h

Issue 3531008: Integrated Pepper3D v2 with the accelerated compositor.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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
Index: chrome/renderer/ggl/ggl.h
===================================================================
--- chrome/renderer/ggl/ggl.h (revision 65093)
+++ chrome/renderer/ggl/ggl.h (working copy)
@@ -18,6 +18,12 @@
class GpuChannelHost;
class MessageLoop;
+namespace gpu {
+namespace gles2 {
+class GLES2Implementation;
+}
+}
+
namespace media {
class VideoDecodeContext;
class VideoDecodeEngine;
@@ -120,15 +126,11 @@
// Provides a callback that will be invoked when SwapBuffers has completed
// service side.
-void SetSwapBuffersCallback(Context* context,
- Callback1<Context*>::Type* callback);
+void SetSwapBuffersCallback(Context* context, Callback0::Type* callback);
// Set the current GGL context for the calling thread.
bool MakeCurrent(Context* context);
-// Get the calling thread's current GGL context.
-Context* GetCurrentContext();
-
// For a view context, display everything that has been rendered since the
// last call. For an offscreen context, resolve everything that has been
// rendered since the last call to a copy that can be accessed by the parent
@@ -153,8 +155,12 @@
// TODO(gman): Remove this
void DisableShaderTranslation(Context* context);
+// Allows direct access to the GLES2 implementation so a context
+// can be used without making it current.
+gpu::gles2::GLES2Implementation* GetImplementation(Context* context);
+
// Return the current GGL error.
-Error GetError();
+Error GetError(Context* context);
} // namespace ggl

Powered by Google App Engine
This is Rietveld 408576698