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

Unified Diff: content/browser/gpu/gpu_process_host.cc

Issue 11026015: Add calls to inform gpu of browser window count (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Send correct window count Created 8 years, 2 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 | « content/browser/gpu/gpu_data_manager_impl.cc ('k') | content/public/browser/gpu_data_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_process_host.cc
diff --git a/content/browser/gpu/gpu_process_host.cc b/content/browser/gpu/gpu_process_host.cc
index 481be2d271fca8d8b50d4eb56b53804bb7e17210..9bbfd1c4ed76c16863f673096f84e8d56a960af9 100644
--- a/content/browser/gpu/gpu_process_host.cc
+++ b/content/browser/gpu/gpu_process_host.cc
@@ -446,7 +446,11 @@ bool GpuProcessHost::Init() {
return false;
}
- return Send(new GpuMsg_Initialize());
+ if (!Send(new GpuMsg_Initialize()))
+ return false;
+
+ return Send(new GpuMsg_SetVideoMemoryWindowCount(
+ GpuDataManagerImpl::GetInstance()->GpuAccessAllowed()));
ccameron 2012/10/03 22:05:43 s/GpuAccessAllowed/GetWindowCount/, I think.
piman 2012/10/03 22:10:21 Yes... If you get a chance, please double-check th
DaveMoore 2012/10/03 22:52:38 Bork Bork. I rushed and get messed up autocomplete
}
void GpuProcessHost::RouteOnUIThread(const IPC::Message& message) {
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl.cc ('k') | content/public/browser/gpu_data_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698