Index: chrome/renderer/pepper_platform_context_3d_impl.h |
diff --git a/chrome/renderer/pepper_platform_context_3d_impl.h b/chrome/renderer/pepper_platform_context_3d_impl.h |
index 1a34f98a0e91ccaedd64fe83f3c9047971c0544c..463355afae4e0f9ee0244a1b8dd2737ad2fecfd7 100644 |
--- a/chrome/renderer/pepper_platform_context_3d_impl.h |
+++ b/chrome/renderer/pepper_platform_context_3d_impl.h |
@@ -8,12 +8,21 @@ |
#ifdef ENABLE_GPU |
+namespace gpu { |
+ |
+class CommandBuffer; |
+ |
+} // namespace gpu |
+ |
namespace ggl { |
class Context; |
} // namespace ggl; |
+class GpuChannelHost; |
+class CommandBufferProxy; |
+ |
class PlatformContext3DImpl |
: public webkit::ppapi::PluginDelegate::PlatformContext3D { |
public: |
@@ -21,15 +30,17 @@ class PlatformContext3DImpl |
virtual ~PlatformContext3DImpl(); |
virtual bool Init(); |
- virtual bool SwapBuffers(); |
- virtual unsigned GetError(); |
virtual void SetSwapBuffersCallback(Callback0::Type* callback); |
virtual unsigned GetBackingTextureId(); |
- virtual gpu::gles2::GLES2Implementation* GetGLES2Implementation(); |
+ virtual gpu::CommandBuffer* GetCommandBuffer(); |
private: |
+ bool InitRaw(); |
+ |
ggl::Context* parent_context_; |
- ggl::Context* context_; |
+ scoped_refptr<GpuChannelHost> channel_; |
+ unsigned int parent_texture_id_; |
+ CommandBufferProxy* command_buffer_; |
}; |
#endif // ENABLE_GPU |