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

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: Disable on Android 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..0515fae19bcadca5146ce492fac1c21ed7213409 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()->GetWindowCount()));
}
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