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

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

Issue 11359024: Texture provider to feed data to the impl side thread for webview compositing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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_tests.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 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);
};
« no previous file with comments | « content/content_tests.gypi ('k') | content/renderer/browser_plugin/browser_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698