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 |