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

Unified Diff: content/renderer/render_widget.h

Issue 6840060: Progress towards fixing 77536 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: "" Created 9 years, 8 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/renderer/render_widget.h
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h
index a3ce7b069ab95cd5274fcb2942a7a94eff839b2e..cb9ae4552521ff428ae88fd457d111bbcdc7a400 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -122,6 +122,11 @@ class RenderWidget : public IPC::Channel::Listener,
// Close the underlying WebWidget.
virtual void Close();
+ // TODO(backer): Where does this go? is it public?
+ gfx::PluginWindowHandle compositing_surface() const {
+ return compositing_surface_;
+ }
+
protected:
// Friend RefCounted so that the dtor can be non-public. Using this class
// without ref-counting is an error.
@@ -143,7 +148,8 @@ class RenderWidget : public IPC::Channel::Listener,
IPC::SyncMessage* create_widget_message);
// Finishes creation of a pending view started with Init.
- void CompleteInit(gfx::NativeViewId parent);
+ void CompleteInit(gfx::NativeViewId parent,
+ gfx::PluginWindowHandle compositing_surface);
// Paints the given rectangular region of the WebWidget into canvas (a
// shared memory segment returned by AllocPaintBuf on Windows). The caller
@@ -168,7 +174,8 @@ class RenderWidget : public IPC::Channel::Listener,
// RenderWidget IPC message handlers
void OnClose();
- void OnCreatingNewAck(gfx::NativeViewId parent);
+ void OnCreatingNewAck(gfx::NativeViewId parent,
+ gfx::PluginWindowHandle compositing_surface);
virtual void OnResize(const gfx::Size& new_size,
const gfx::Rect& resizer_rect);
virtual void OnWasHidden();
@@ -366,6 +373,10 @@ class RenderWidget : public IPC::Channel::Listener,
// compositor.
bool is_accelerated_compositing_active_;
+ // Handle to a surface that is drawn to when accelerated compositing is
+ // active.
+ gfx::PluginWindowHandle compositing_surface_;
+
base::Time animation_floor_time_;
bool animation_update_pending_;
bool animation_task_posted_;

Powered by Google App Engine
This is Rietveld 408576698