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

Unified Diff: chrome/browser/renderer_host/render_widget_host_view_win.cc

Issue 1136006: Calling OpenGL from the renderer process. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host.cc ('k') | chrome/common/chrome_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/render_widget_host_view_win.cc
===================================================================
--- chrome/browser/renderer_host/render_widget_host_view_win.cc (revision 42644)
+++ chrome/browser/renderer_host/render_widget_host_view_win.cc (working copy)
@@ -293,6 +293,15 @@
void RenderWidgetHostViewWin::CreateWnd(HWND parent) {
Create(parent); // ATL function to create the window.
+
+ // Add a property indicating that a particular renderer is associated with
+ // this window. Used by the GPU process to validate window handles it
+ // receives from renderer processes.
+ int renderer_id = render_widget_host_->process()->id();
+ SetProp(m_hWnd,
+ chrome::kChromiumRendererIdProperty,
+ reinterpret_cast<HANDLE>(renderer_id));
+
// Uncommenting this will enable experimental out-of-process painting.
// Contact brettw for more,
// gpu_view_host_.reset(new GpuViewHost(render_widget_host_, m_hWnd));
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host.cc ('k') | chrome/common/chrome_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698