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

Unified Diff: content/renderer/browser_plugin/browser_plugin.h

Issue 10735010: 3D Compositing in <browser>, first draft. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Use the correct baseline Created 8 years, 4 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 | « content/public/browser/notification_types.h ('k') | content/renderer/browser_plugin/browser_plugin.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/browser_plugin/browser_plugin.h
diff --git a/content/renderer/browser_plugin/browser_plugin.h b/content/renderer/browser_plugin/browser_plugin.h
index 69090143f164a0c339543f315e08157e16902a69..7643c0bef59f41c07ed3073635af75bb5a61b00d 100644
--- a/content/renderer/browser_plugin/browser_plugin.h
+++ b/content/renderer/browser_plugin/browser_plugin.h
@@ -12,12 +12,19 @@
#include "content/renderer/browser_plugin/browser_plugin_backing_store.h"
#include "content/renderer/browser_plugin/browser_plugin_bindings.h"
#include "content/renderer/render_view_impl.h"
+#include "ipc/ipc_forwarding_message_filter.h"
struct BrowserPluginMsg_UpdateRect_Params;
+struct BrowserPlugin_SwapInfo;
+
+namespace gfx {
+class Size;
+}
namespace content {
class BrowserPluginManager;
+class BrowserPluginTextureProvider;
class MockBrowserPlugin;
class CONTENT_EXPORT BrowserPlugin :
@@ -44,6 +51,14 @@ class CONTENT_EXPORT BrowserPlugin :
// Tells the BrowserPlugin to advance the focus to the next (or previous)
// element.
void AdvanceFocus(bool reverse);
+ void BuffersSwapped(
+ uint64 surface_handle,
+ const BrowserPlugin_SwapInfo& info);
+ void SurfaceResize(const gfx::Size& size);
+ void PostMessage(const std::string& message,
+ const std::string& target_origin);
+
+ void TextureProviderIsReady();
// Indicates whether there are any Javascript listeners attached to a
// provided event_name.
@@ -115,6 +130,9 @@ class CONTENT_EXPORT BrowserPlugin :
// Virtual to allow for mocking in tests.
virtual float GetDeviceScaleFactor() const;
+ virtual BrowserPluginTextureProvider* CreateTextureProvider(
+ int instance_id,
+ int routing_id) const;
// Parses the source URL of the browser plugin from the element's attributes
// and outputs them.
@@ -138,6 +156,8 @@ class CONTENT_EXPORT BrowserPlugin :
bool resize_pending_;
int64 parent_frame_;
std::string src_;
+ BrowserPluginTextureProvider* provider_;
+ bool ignore_input_;
typedef std::vector<v8::Persistent<v8::Function> > EventListeners;
typedef std::map<std::string, EventListeners> EventListenerMap;
EventListenerMap event_listener_map_;
« no previous file with comments | « content/public/browser/notification_types.h ('k') | content/renderer/browser_plugin/browser_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698