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 |
new file mode 100644 |
index 0000000000000000000000000000000000000000..03c6bb60af55e5444d985b14ee3a26b50d7ebeb5 |
--- /dev/null |
+++ b/chrome/renderer/pepper_platform_context_3d_impl.h |
@@ -0,0 +1,34 @@ |
+// Copyright (c) 2010 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "webkit/glue/plugins/pepper_plugin_delegate.h" |
+ |
+#ifdef ENABLE_GPU |
+ |
+namespace ggl { |
+ |
+class Context; |
+ |
+} // namespace ggl; |
+ |
+class PlatformContext3DImpl : public pepper::PluginDelegate::PlatformContext3D { |
+ public: |
+ explicit PlatformContext3DImpl(ggl::Context* parent_context); |
+ virtual ~PlatformContext3DImpl(); |
+ |
+ virtual bool Init(); |
+ virtual bool SwapBuffers(); |
+ virtual unsigned GetError(); |
+ virtual void SetSwapBuffersCallback(Callback0::Type* callback); |
+ void ResizeBackingTexture(const gfx::Size& size); |
+ virtual unsigned GetBackingTextureId(); |
+ virtual gpu::gles2::GLES2Implementation* GetGLES2Implementation(); |
+ |
+ private: |
+ ggl::Context* parent_context_; |
+ ggl::Context* context_; |
+}; |
+ |
+#endif // ENABLE_GPU |
+ |