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

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: Major changes to clean up deadlock & other issues 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
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 210774b25f4831e1525a63833aedbed87601209c..1d20c994c087cae9b53809f0e44a1448cf8b7e34 100644
--- a/content/renderer/browser_plugin/browser_plugin.h
+++ b/content/renderer/browser_plugin/browser_plugin.h
@@ -12,12 +12,21 @@
#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;
+
+}
scshunt 2012/08/12 01:42:45 Is the style to have spaces around the inner class
scshunt 2012/08/17 17:30:28 Done.
namespace content {
class BrowserPluginManager;
+class BrowserPluginTextureProvider;
class MockBrowserPlugin;
class CONTENT_EXPORT BrowserPlugin :
@@ -44,6 +53,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.
@@ -138,6 +155,8 @@ class CONTENT_EXPORT BrowserPlugin :
bool resize_pending_;
long long 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_;

Powered by Google App Engine
This is Rietveld 408576698