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

Unified Diff: content/browser/renderer_host/render_widget_helper.h

Issue 7136001: GPU compositing surface handle is no longer sent to renderer process. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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/browser/renderer_host/render_widget_helper.h
===================================================================
--- content/browser/renderer_host/render_widget_helper.h (revision 90090)
+++ content/browser/renderer_host/render_widget_helper.h (working copy)
@@ -16,6 +16,7 @@
#include "base/synchronization/waitable_event.h"
#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 +118,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 +150,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 +208,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.
« no previous file with comments | « content/browser/renderer_host/render_view_host.cc ('k') | content/browser/renderer_host/render_widget_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698