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

Unified Diff: content/browser/browser_plugin/browser_plugin_host_helper.h

Issue 10735010: 3D Compositing in <browser>, first draft. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 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/browser/browser_plugin/browser_plugin_host_helper.h
diff --git a/content/browser/browser_plugin/browser_plugin_host_helper.h b/content/browser/browser_plugin/browser_plugin_host_helper.h
index 3fa95e3ece8e8fab290537a55dca380fdbeade57..b03a6214b2af9973ce14c8ff9cf83411dd50c042 100644
--- a/content/browser/browser_plugin/browser_plugin_host_helper.h
+++ b/content/browser/browser_plugin/browser_plugin_host_helper.h
@@ -9,6 +9,7 @@
#include <string>
#include "base/compiler_specific.h"
+#include "content/common/browser_plugin_info.h"
#include "content/public/browser/render_view_host_observer.h"
#include "ipc/ipc_channel_handle.h"
#include "ipc/ipc_sync_message.h"
@@ -19,6 +20,7 @@ namespace gfx {
class Size;
}
+struct BrowserPlugin_SwapInfo;
struct ViewHostMsg_UpdateRect_Params;
namespace content {
@@ -34,7 +36,8 @@ class BrowserPluginHost;
class BrowserPluginHostHelper : public RenderViewHostObserver {
public:
BrowserPluginHostHelper(BrowserPluginHost* browser_plugin_host,
- RenderViewHost* render_view_host);
+ RenderViewHost* render_view_host,
+ const BrowserPluginHostMsg_Surface_Params& params);
virtual ~BrowserPluginHostHelper();
// Make it public for sync IPCs.
@@ -42,19 +45,21 @@ class BrowserPluginHostHelper : public RenderViewHostObserver {
private:
void OnNavigateGuestFromEmbedder(int container_instance_id,
long long frame_id,
- const std::string& src);
+ const std::string& src,
+ const BrowserPluginHostMsg_Surface_Params& params);
void OnResizeGuest(int instance_id,
const TransportDIB::Id& damage_buffer_id,
int width,
int height);
-
void OnUpdateRectACK(int instance_id, int message_id);
void OnHandleInputEvent(const IPC::SyncMessage& message);
void OnSetFocus(int container_instance_id, bool focused);
+ void OnSwapBuffersACK(const BrowserPlugin_SwapInfo& info, uint32 sync_point);
+
// Intercepted from the guest renderer process.
void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params);
void OnHandleInputEventAck(WebKit::WebInputEvent::Type event_type,
@@ -66,6 +71,10 @@ class BrowserPluginHostHelper : public RenderViewHostObserver {
BrowserPluginHost* browser_plugin_host_;
+ BrowserPluginHostMsg_Surface_Params surface_params_;
+
+ friend class CrappyCompositingDelegate;
+
DISALLOW_COPY_AND_ASSIGN(BrowserPluginHostHelper);
};

Powered by Google App Engine
This is Rietveld 408576698