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

Unified Diff: chrome/renderer/pepper_platform_context_3d_impl.h

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.cc ('k') | chrome/renderer/pepper_platform_context_3d_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « chrome/renderer/ggl/ggl.cc ('k') | chrome/renderer/pepper_platform_context_3d_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698