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

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

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.cc
===================================================================
--- content/browser/renderer_host/render_widget_helper.cc (revision 90090)
+++ content/browser/renderer_host/render_widget_helper.cc (working copy)
@@ -333,3 +333,24 @@
allocated_dibs_.clear();
}
#endif
+
+void RenderWidgetHelper::SetCompositingSurface(
+ int render_widget_id,
+ gfx::PluginWindowHandle compositing_surface) {
+ base::AutoLock locked(view_compositing_surface_map_lock_);
+ if (compositing_surface != gfx::kNullPluginWindow)
+ view_compositing_surface_map_[render_widget_id] = compositing_surface;
+ else
+ view_compositing_surface_map_.erase(render_widget_id);
+}
+
+gfx::PluginWindowHandle RenderWidgetHelper::LookupCompositingSurface(
+ int render_widget_id) {
+ base::AutoLock locked(view_compositing_surface_map_lock_);
+ ViewCompositingSurfaceMap::iterator it =
+ view_compositing_surface_map_.find(render_widget_id);
+ if (it == view_compositing_surface_map_.end())
+ return gfx::kNullPluginWindow;
+
+ return it->second;
+}
« no previous file with comments | « content/browser/renderer_host/render_widget_helper.h ('k') | content/browser/renderer_host/render_widget_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698