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

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

Issue 2654993004: Move GPU blacklist calculation to GPU proc (Closed)
Patch Set: cleanup 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 0fe67c4ab80b7683bf41fcd986079a685f5f7916..0ff91bff2e642357a66dcfac22e023e76c935bec 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)
@@ -824,15 +826,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::GPUFeatureStatus& gpu_feature_status) {
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()->UpdateGpuFeatureStatus(gpu_feature_status);
}
void GpuProcessHost::OnChannelEstablished(

Powered by Google App Engine
This is Rietveld 408576698