commit | d639081151c08b096a18b084e48f022ce377512e | [log] [tgz] |
---|---|---|
author | Xi Cheng <[email protected]> | Wed Jan 24 00:01:50 2018 |
committer | Commit Bot <[email protected]> | Wed Jan 24 00:01:50 2018 |
tree | f984efc4f5009cc67b5cd641243aece2a60a12b0 | |
parent | 3806eaaeb33fa8c9a9f091c31cb3579fb5b499ee [diff] [blame] |
Enable sampling profiler for IO thread of GPU process at startup Bug: 795672 Change-Id: I31c81b44d915e49e9f8b381ff14df44939fa99e4 Reviewed-on: https://chromium-review.googlesource.com/879074 Reviewed-by: Mike Wittman <[email protected]> Reviewed-by: Antoine Labour <[email protected]> Commit-Queue: Xi Cheng <[email protected]> Cr-Commit-Position: refs/heads/master@{#531392}
diff --git a/content/gpu/gpu_main.cc b/content/gpu/gpu_main.cc index c989841e6..7385416b 100644 --- a/content/gpu/gpu_main.cc +++ b/content/gpu/gpu_main.cc
@@ -311,6 +311,10 @@ #endif GpuProcess gpu_process(io_thread_priority); + + if (client) + client->PostIOThreadCreated(gpu_process.io_task_runner()); + GpuChildThread* child_thread = new GpuChildThread( std::move(gpu_init), std::move(deferred_messages.Get())); deferred_messages.Get().clear();