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

Unified Diff: webkit/plugins/ppapi/plugin_delegate.h

Issue 16290005: Move Pepper to using mailboxes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 7 years, 6 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 | « webkit/plugins/ppapi/mock_plugin_delegate.cc ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/plugin_delegate.h
diff --git a/webkit/plugins/ppapi/plugin_delegate.h b/webkit/plugins/ppapi/plugin_delegate.h
index acbba067eda4cd4cd7f19df67146e8bd0bdb4085..6119c4ce6f38f23a9c8b7a57ef31aaa8166ca708 100644
--- a/webkit/plugins/ppapi/plugin_delegate.h
+++ b/webkit/plugins/ppapi/plugin_delegate.h
@@ -63,6 +63,7 @@ class Point;
namespace gpu {
class CommandBuffer;
+struct Mailbox;
}
namespace ppapi {
@@ -219,12 +220,8 @@ class PluginDelegate {
virtual bool Init(const int32* attrib_list,
PlatformContext3D* share_context) = 0;
- // If the plugin instance is backed by an OpenGL, return its ID in the
- // compositors namespace. Otherwise return 0. Returns 0 by default.
- virtual unsigned GetBackingTextureId() = 0;
-
- // Returns the parent context that allocated the backing texture ID.
- virtual WebKit::WebGraphicsContext3D* GetParentContext() = 0;
+ // Retrieves the mailbox name for the front buffer backing the context.
+ virtual void GetBackingMailbox(::gpu::Mailbox* mailbox) = 0;
// Returns true if the backing texture is always opaque.
virtual bool IsOpaque() = 0;
@@ -412,9 +409,6 @@ class PluginDelegate {
// The caller will own the pointer returned from this.
virtual PlatformContext3D* CreateContext3D() = 0;
- // Set that the context will now present to the delegate.
- virtual void ReparentContext(PlatformContext3D*) = 0;
-
// If |device_id| is empty, the default video capture device will be used. The
// user can start using the returned object to capture video right away.
// Otherwise, the specified device will be used. The user needs to wait till
« no previous file with comments | « webkit/plugins/ppapi/mock_plugin_delegate.cc ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698