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