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 5f5a8899b61a247b85001cd785e8300e5d34524f..363075086ced942784a9e672191a3871aa75a2dd 100644 |
--- a/content/renderer/browser_plugin/browser_plugin.h |
+++ b/content/renderer/browser_plugin/browser_plugin.h |
@@ -23,9 +23,14 @@ struct BrowserPluginHostMsg_ResizeGuest_Params; |
struct BrowserPluginMsg_LoadCommit_Params; |
struct BrowserPluginMsg_UpdateRect_Params; |
+namespace gfx { |
+ class Size; |
+} |
+ |
namespace content { |
class BrowserPluginManager; |
+class BrowserPluginTextureProvider; |
class MockBrowserPlugin; |
class CONTENT_EXPORT BrowserPlugin : |
@@ -111,6 +116,13 @@ class CONTENT_EXPORT BrowserPlugin : |
void Stop(); |
// A request from Javascript has been made to reload the page. |
void Reload(); |
+ // A request to enable hardware compositing. |
+ void EnableCompositing(); |
+ // Initialized the texture provider used for compositing. |
+ void InitializeTextureProvider(); |
+ // Provide HW compositing info if we have a context, reset otherwise. |
+ void ProvideHWCompositingInfo(BrowserPluginHostMsg_ResizeGuest_Params*, |
+ WebGraphicsContext3DCommandBufferImpl*); |
// WebKit::WebPlugin implementation. |
virtual WebKit::WebPluginContainer* container() const OVERRIDE; |
@@ -252,6 +264,11 @@ class CONTENT_EXPORT BrowserPlugin : |
// number of entries and earlier ones will automatically be pruned. |
int current_nav_entry_index_; |
int nav_entry_count_; |
+ |
+ // Used for HW compositing. |
+ BrowserPluginTextureProvider* provider_; |
+ bool compositingPossible_; |
+ bool compositingEnabled_; |
DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); |
}; |