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

Unified Diff: chrome/renderer/pepper_platform_context_3d_impl.h

Issue 5842003: Move PlatformContext3DImpl to separate file (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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/chrome_renderer.gypi ('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
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
+
« no previous file with comments | « chrome/chrome_renderer.gypi ('k') | chrome/renderer/pepper_platform_context_3d_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698