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

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

Issue 11824040: Enables compositing support for webview. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed build error on mac and win, nits Created 7 years, 11 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/content_renderer.gypi ('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 80f2c6b9440d4c5a5c8cc6cec5fbd25c69c6c89a..9680daf7ecca55e1ce87be92fc4d97346fd2101f 100644
--- a/content/renderer/browser_plugin/browser_plugin.h
+++ b/content/renderer/browser_plugin/browser_plugin.h
@@ -26,6 +26,7 @@ struct BrowserPluginMsg_UpdateRect_Params;
namespace content {
+class BrowserPluginCompositingHelper;
class BrowserPluginManager;
class MockBrowserPlugin;
@@ -245,6 +246,11 @@ class CONTENT_EXPORT BrowserPlugin :
// IPC message handlers.
// Please keep in alphabetical order.
void OnAdvanceFocus(int instance_id, bool reverse);
+ void OnBuffersSwapped(int instance_id,
+ const gfx::Size& size,
+ std::string mailbox_name,
+ int gpu_route_id,
+ int gpu_host_id);
void OnGuestContentWindowReady(int instance_id,
int content_window_routing_id);
void OnGuestGone(int instance_id, int process_id, int status);
@@ -331,6 +337,7 @@ class CONTENT_EXPORT BrowserPlugin :
// Used for HW compositing.
bool compositing_enabled_;
+ scoped_ptr<BrowserPluginCompositingHelper> compositing_helper_;
DISALLOW_COPY_AND_ASSIGN(BrowserPlugin);
};
« no previous file with comments | « content/content_renderer.gypi ('k') | content/renderer/browser_plugin/browser_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698