| 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(
|
|
|