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

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

Issue 6293023: PPAPI: move GLES2Implementation to PPAPI glue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 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 | « chrome/renderer/ggl/ggl.h ('k') | chrome/renderer/pepper_platform_context_3d_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/ggl/ggl.cc
diff --git a/chrome/renderer/ggl/ggl.cc b/chrome/renderer/ggl/ggl.cc
index 43b6f67118c7553636b738d530a870351f00dc69..16260f19d9227256f94261a8cfd5842ca1714b68 100644
--- a/chrome/renderer/ggl/ggl.cc
+++ b/chrome/renderer/ggl/ggl.cc
@@ -123,6 +123,11 @@ class Context : public base::SupportsWeakPtr<Context> {
gpu::gles2::GLES2Implementation* gles2_implementation() const {
return gles2_implementation_;
}
+
+ CommandBufferProxy* command_buffer() const {
+ return command_buffer_;
+ }
+
private:
void OnSwapBuffers();
@@ -575,4 +580,9 @@ gpu::gles2::GLES2Implementation* GetImplementation(Context* context) {
return context->gles2_implementation();
}
+CommandBufferProxy* GetCommandBufferProxy(Context* context) {
+ DCHECK(context);
+ return context->command_buffer();
+}
+
} // namespace ggl
« no previous file with comments | « chrome/renderer/ggl/ggl.h ('k') | chrome/renderer/pepper_platform_context_3d_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698