Index: content/browser/renderer_host/render_widget_helper.h |
=================================================================== |
--- content/browser/renderer_host/render_widget_helper.h (revision 89036) |
+++ content/browser/renderer_host/render_widget_helper.h (working copy) |
@@ -14,8 +14,10 @@ |
#include "base/process.h" |
#include "base/synchronization/lock.h" |
#include "base/synchronization/waitable_event.h" |
+#include "content/browser/browser_thread.h" |
jam
2011/06/21 21:49:03
nit: doesn't look like this is needed
|
#include "content/common/window_container_type.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" |
+#include "ui/gfx/native_widget_types.h" |
#include "ui/gfx/surface/transport_dib.h" |
namespace IPC { |
@@ -117,6 +119,10 @@ |
TransportDIB* MapTransportDIB(TransportDIB::Id dib_id); |
#endif |
+ // Set a mapping from a RenderWidgetHost to a compositing surface. Pass a null |
+ // handle to remove the mapping. |
+ void SetCompositingSurface(int render_widget_id, |
+ gfx::PluginWindowHandle compositing_surface); |
// IO THREAD ONLY ----------------------------------------------------------- |
@@ -145,6 +151,9 @@ |
void FreeTransportDIB(TransportDIB::Id dib_id); |
#endif |
+ // Lookup the compositing surface corresponding to a widget ID. |
+ gfx::PluginWindowHandle LookupCompositingSurface(int render_widget_id); |
+ |
private: |
// A class used to proxy a paint message. PaintMsgProxy objects are created |
// on the IO thread and destroyed on the UI thread. |
@@ -200,6 +209,11 @@ |
UpdateMsgProxyMap pending_paints_; |
base::Lock pending_paints_lock_; |
+ // Maps from view ID to compositing surface. |
+ typedef std::map<int, gfx::PluginWindowHandle> ViewCompositingSurfaceMap; |
+ ViewCompositingSurfaceMap view_compositing_surface_map_; |
+ base::Lock view_compositing_surface_map_lock_; |
+ |
int render_process_id_; |
// Event used to implement WaitForUpdateMsg. |