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

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

Issue 2654993004: Move GPU blacklist calculation to GPU proc (Closed)
Patch Set: Feedback + add rest of logic back in Created 3 years, 11 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/gpu/gpu_process_host.cc
diff --git a/content/browser/gpu/gpu_process_host.cc b/content/browser/gpu/gpu_process_host.cc
index 0966386a2c552ad0d07faa615b78b1da86914425..146616f056fc9ef4627a9adcac942162e48bca60 100644
--- a/content/browser/gpu/gpu_process_host.cc
+++ b/content/browser/gpu/gpu_process_host.cc
@@ -115,6 +115,7 @@ static const char* const kSwitchNames[] = {
switches::kDisableAcceleratedVideoDecode,
switches::kDisableBreakpad,
switches::kDisableES3GLContext,
+ switches::kDisableGpuRasterization,
switches::kDisableGpuSandbox,
switches::kDisableGpuWatchdog,
switches::kDisableGLExtensions,
@@ -126,6 +127,7 @@ static const char* const kSwitchNames[] = {
#if defined(OS_WIN)
switches::kEnableAcceleratedVpxDecode,
#endif
+ switches::kEnableGpuRasterization,
switches::kEnableHeapProfiling,
switches::kEnableLogging,
#if defined(OS_CHROMEOS)
@@ -818,15 +820,20 @@ void GpuProcessHost::SendDestroyingVideoSurface(int surface_id,
}
#endif
-void GpuProcessHost::OnInitialized(bool result, const gpu::GPUInfo& gpu_info) {
+void GpuProcessHost::OnInitialized(
+ bool result,
+ const gpu::GPUInfo& gpu_info,
+ const gpu::GpuFeatureInfo& gpu_feature_info) {
UMA_HISTOGRAM_BOOLEAN("GPU.GPUProcessInitialized", result);
initialized_ = result;
gpu_info_ = gpu_info;
- if (!initialized_)
+ if (!initialized_) {
GpuDataManagerImpl::GetInstance()->OnGpuProcessInitFailure();
- else
- GpuDataManagerImpl::GetInstance()->UpdateGpuInfo(gpu_info);
+ return;
+ }
+ GpuDataManagerImpl::GetInstance()->UpdateGpuInfo(gpu_info);
+ GpuDataManagerImpl::GetInstance()->UpdateGpuFeatureInfo(gpu_feature_info);
}
void GpuProcessHost::OnChannelEstablished(

Powered by Google App Engine
This is Rietveld 408576698