Commit 65493578 authored by kylechar's avatar kylechar Committed by Commit Bot

Don't increment LAUNCHED UMA for unsandboxed.

We don't increment the crashed UMA for GPU_PROCESS_KIND_UNSANDBOXED. Don't
increment the launched UMA either.

Bug: 846333
Change-Id: I3f5845c3bd1b221640a11098ed7c5b7b1da2148b
Reviewed-on: https://chromium-review.googlesource.com/1091492Reviewed-by: default avatarZhenyao Mo <zmo@chromium.org>
Commit-Queue: kylechar <kylechar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#565455}
parent b3bf25e6
...@@ -1411,16 +1411,18 @@ bool GpuProcessHost::LaunchGpuProcess() { ...@@ -1411,16 +1411,18 @@ bool GpuProcessHost::LaunchGpuProcess() {
process_->Launch(std::move(delegate), std::move(cmd_line), true); process_->Launch(std::move(delegate), std::move(cmd_line), true);
process_launched_ = true; process_launched_ = true;
auto* gpu_data_manager = GpuDataManagerImpl::GetInstance(); if (kind_ == GPU_PROCESS_KIND_SANDBOXED) {
if (gpu_data_manager->HardwareAccelerationEnabled()) { auto* gpu_data_manager = GpuDataManagerImpl::GetInstance();
UMA_HISTOGRAM_ENUMERATION(kProcessLifetimeEventsHardwareAccelerated, if (gpu_data_manager->HardwareAccelerationEnabled()) {
LAUNCHED, GPU_PROCESS_LIFETIME_EVENT_MAX); UMA_HISTOGRAM_ENUMERATION(kProcessLifetimeEventsHardwareAccelerated,
} else if (gpu_data_manager->SwiftShaderAllowed()) { LAUNCHED, GPU_PROCESS_LIFETIME_EVENT_MAX);
UMA_HISTOGRAM_ENUMERATION(kProcessLifetimeEventsSwiftShader, LAUNCHED, } else if (gpu_data_manager->SwiftShaderAllowed()) {
GPU_PROCESS_LIFETIME_EVENT_MAX); UMA_HISTOGRAM_ENUMERATION(kProcessLifetimeEventsSwiftShader, LAUNCHED,
} else { GPU_PROCESS_LIFETIME_EVENT_MAX);
UMA_HISTOGRAM_ENUMERATION(kProcessLifetimeEventsDisplayCompositor, LAUNCHED, } else {
GPU_PROCESS_LIFETIME_EVENT_MAX); UMA_HISTOGRAM_ENUMERATION(kProcessLifetimeEventsDisplayCompositor,
LAUNCHED, GPU_PROCESS_LIFETIME_EVENT_MAX);
}
} }
return true; return true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment