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

Side by Side Diff: content/browser/gpu/gpu_data_manager_impl.cc

Issue 11451021: Only launch a second un-sandboxed gpu process on Windows. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/gpu/gpu_child_thread.cc » ('j') | content/gpu/gpu_child_thread.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/gpu/gpu_data_manager_impl.h" 5 #include "content/browser/gpu/gpu_data_manager_impl.h"
6 6
7 #if defined(OS_MACOSX) 7 #if defined(OS_MACOSX)
8 #include <ApplicationServices/ApplicationServices.h> 8 #include <ApplicationServices/ApplicationServices.h>
9 #endif // OS_MACOSX 9 #endif // OS_MACOSX
10 10
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 CGDisplayRemoveReconfigurationCallback(DisplayReconfigCallback, this); 174 CGDisplayRemoveReconfigurationCallback(DisplayReconfigCallback, this);
175 #endif 175 #endif
176 } 176 }
177 177
178 void GpuDataManagerImpl::RequestCompleteGpuInfoIfNeeded() { 178 void GpuDataManagerImpl::RequestCompleteGpuInfoIfNeeded() {
179 if (complete_gpu_info_already_requested_ || gpu_info_.finalized) 179 if (complete_gpu_info_already_requested_ || gpu_info_.finalized)
180 return; 180 return;
181 complete_gpu_info_already_requested_ = true; 181 complete_gpu_info_already_requested_ = true;
182 182
183 GpuProcessHost::SendOnIO( 183 GpuProcessHost::SendOnIO(
184 #if defined(OS_WIN)
184 GpuProcessHost::GPU_PROCESS_KIND_UNSANDBOXED, 185 GpuProcessHost::GPU_PROCESS_KIND_UNSANDBOXED,
186 #else
187 GpuProcessHost::GPU_PROCESS_KIND_SANDBOXED,
188 #endif
185 CAUSE_FOR_GPU_LAUNCH_GPUDATAMANAGER_REQUESTCOMPLETEGPUINFOIFNEEDED, 189 CAUSE_FOR_GPU_LAUNCH_GPUDATAMANAGER_REQUESTCOMPLETEGPUINFOIFNEEDED,
186 new GpuMsg_CollectGraphicsInfo()); 190 new GpuMsg_CollectGraphicsInfo());
187 } 191 }
188 192
189 bool GpuDataManagerImpl::IsCompleteGpuInfoAvailable() const { 193 bool GpuDataManagerImpl::IsCompleteGpuInfoAvailable() const {
190 return gpu_info_.finalized; 194 return gpu_info_.finalized;
191 } 195 }
192 196
193 void GpuDataManagerImpl::UpdateGpuInfo(const GPUInfo& gpu_info) { 197 void GpuDataManagerImpl::UpdateGpuInfo(const GPUInfo& gpu_info) {
194 // No further update of gpu_info if falling back to software renderer. 198 // No further update of gpu_info if falling back to software renderer.
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 } 704 }
701 705
702 return DOMAIN_BLOCK_STATUS_NOT_BLOCKED; 706 return DOMAIN_BLOCK_STATUS_NOT_BLOCKED;
703 } 707 }
704 708
705 int64 GpuDataManagerImpl::GetBlockAllDomainsDurationInMs() const { 709 int64 GpuDataManagerImpl::GetBlockAllDomainsDurationInMs() const {
706 return kBlockAllDomainsMs; 710 return kBlockAllDomainsMs;
707 } 711 }
708 712
709 } // namespace content 713 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/gpu/gpu_child_thread.cc » ('j') | content/gpu/gpu_child_thread.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698