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

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

Issue 1003033002: Instrument BrowserGpuChannelHostFactory::EstablishRequest::FinishOnMain Codepaths to Find Jank (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/browser_gpu_channel_host_factory.cc
diff --git a/content/browser/gpu/browser_gpu_channel_host_factory.cc b/content/browser/gpu/browser_gpu_channel_host_factory.cc
index fea661a4084ac07a158f20fe162574be2613ce8c..d938b4ba918b5842724a382ad62b3573ca42c26b 100644
--- a/content/browser/gpu/browser_gpu_channel_host_factory.cc
+++ b/content/browser/gpu/browser_gpu_channel_host_factory.cc
@@ -420,6 +420,11 @@ void BrowserGpuChannelHostFactory::GpuChannelEstablished() {
if (pending_request_->channel_handle().name.empty()) {
DCHECK(!gpu_channel_.get());
} else {
+ // TODO(robliao): Remove ScopedTracker below once https://crbug.com/466866
+ // is fixed.
+ tracked_objects::ScopedTracker tracking_profile1(
+ FROM_HERE_WITH_EXPLICIT_FUNCTION(
+ "466866 BrowserGpuChannelHostFactory::GpuChannelEstablished1"));
GetContentClient()->SetGpuInfo(pending_request_->gpu_info());
gpu_channel_ =
GpuChannelHost::Create(this,
@@ -431,6 +436,12 @@ void BrowserGpuChannelHostFactory::GpuChannelEstablished() {
gpu_host_id_ = pending_request_->gpu_host_id();
pending_request_ = NULL;
+ // TODO(robliao): Remove ScopedTracker below once https://crbug.com/466866 is
+ // fixed.
+ tracked_objects::ScopedTracker tracking_profile2(
+ FROM_HERE_WITH_EXPLICIT_FUNCTION(
+ "466866 BrowserGpuChannelHostFactory::GpuChannelEstablished2"));
+
for (size_t n = 0; n < established_callbacks_.size(); n++)
established_callbacks_[n].Run();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698