summaryrefslogtreecommitdiffstats
path: root/content/browser/browser_plugin/browser_plugin_guest.h
diff options
context:
space:
mode:
authoralexst@chromium.org <alexst@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-18 20:35:53 +0000
committeralexst@chromium.org <alexst@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-18 20:35:53 +0000
commit747c3065606eecc478bdae6812171345077b37fb (patch)
tree51632d0669bf0d074b534b7ce964d99baf3db83d /content/browser/browser_plugin/browser_plugin_guest.h
parent37ac5bc729ae6d669c39ad7a10a99341f918d731 (diff)
downloadchromium_src-747c3065606eecc478bdae6812171345077b37fb.zip
chromium_src-747c3065606eecc478bdae6812171345077b37fb.tar.gz
chromium_src-747c3065606eecc478bdae6812171345077b37fb.tar.bz2
Message forwarding code for for webview compositing.
RenderWidgetHostViewGuest is notified when HW accelerated events such as SwapBuffers happen in the guest process. These messages need to be forwarded to the embedder renderer process so that it can perform composition. BUG=143429 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11419288 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173776 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/browser_plugin/browser_plugin_guest.h')
-rw-r--r--content/browser/browser_plugin/browser_plugin_guest.h30
1 files changed, 10 insertions, 20 deletions
diff --git a/content/browser/browser_plugin/browser_plugin_guest.h b/content/browser/browser_plugin/browser_plugin_guest.h
index 09a884e..9a93b70 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.h
+++ b/content/browser/browser_plugin/browser_plugin_guest.h
@@ -243,16 +243,19 @@ class CONTENT_EXPORT BrowserPluginGuest : public NotificationObserver,
#endif
const gfx::Size& damage_view_size,
float scale_factor);
- // Overridden in tests.
- virtual void SetCompositingBufferData(int gpu_process_id,
- uint32 client_id,
- uint32 context_id,
- uint32 texture_id_0,
- uint32 texture_id_1,
- uint32 sync_point);
gfx::Point GetScreenCoordinates(const gfx::Point& relative_position) const;
+ // Helper to send messages to embedder. Overridden in test implementation
+ // since we want to intercept certain messages for testing.
+ virtual void SendMessageToEmbedder(IPC::Message* msg);
+
+ // Returns the embedder's routing ID.
+ int embedder_routing_id() const;
+ // Returns the identifier that uniquely identifies a browser plugin guest
+ // within an embedder.
+ int instance_id() const { return instance_id_; }
+
private:
friend class TestBrowserPluginGuest;
@@ -260,9 +263,6 @@ class CONTENT_EXPORT BrowserPluginGuest : public NotificationObserver,
WebContentsImpl* web_contents,
const BrowserPluginHostMsg_CreateGuest_Params& params);
- // Returns the identifier that uniquely identifies a browser plugin guest
- // within an embedder.
- int instance_id() const { return instance_id_; }
TransportDIB* damage_buffer() const { return damage_buffer_.get(); }
const gfx::Size& damage_view_size() const { return damage_view_size_; }
float damage_buffer_scale_factor() const {
@@ -273,13 +273,6 @@ class CONTENT_EXPORT BrowserPluginGuest : public NotificationObserver,
RenderViewHost* embedder_rvh,
const BrowserPluginHostMsg_ResizeGuest_Params& params);
- // Returns the embedder's routing ID.
- int embedder_routing_id() const;
-
- // Helper to send messages to embedder. Overridden in test implementation
- // since we want to intercept certain messages for testing.
- virtual void SendMessageToEmbedder(IPC::Message* msg);
-
// Called when a redirect notification occurs.
void LoadRedirect(const GURL& old_url,
const GURL& new_url,
@@ -312,9 +305,6 @@ class CONTENT_EXPORT BrowserPluginGuest : public NotificationObserver,
gfx::Size max_auto_size_;
gfx::Size min_auto_size_;
- // Hardware Accelerated Surface Params
- gfx::GLSurfaceHandle surface_handle_;
-
DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest);
};