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

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

Issue 877993003: Pass FROM_HERE to ObserverListThreadSafe::Notify to improve profile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
Index: content/browser/gpu/gpu_data_manager_impl_private.cc
diff --git a/content/browser/gpu/gpu_data_manager_impl_private.cc b/content/browser/gpu/gpu_data_manager_impl_private.cc
index 76bfd573fd8eaec21ddf7ff839835b33603cc194..06d083b7d9d6606162f8fcba2fe30e93f916ca28 100644
--- a/content/browser/gpu/gpu_data_manager_impl_private.cc
+++ b/content/browser/gpu/gpu_data_manager_impl_private.cc
@@ -584,7 +584,8 @@ void GpuDataManagerImplPrivate::UpdateGpuInfo(const gpu::GPUInfo& gpu_info) {
void GpuDataManagerImplPrivate::UpdateVideoMemoryUsageStats(
const GPUVideoMemoryUsageStats& video_memory_usage_stats) {
GpuDataManagerImpl::UnlockedSession session(owner_);
- observer_list_->Notify(&GpuDataManagerObserver::OnVideoMemoryUsageStatsUpdate,
+ observer_list_->Notify(FROM_HERE,
+ &GpuDataManagerObserver::OnVideoMemoryUsageStatsUpdate,
video_memory_usage_stats);
}
@@ -795,7 +796,7 @@ void GpuDataManagerImplPrivate::ProcessCrashed(
gpu_info_.process_crash_count = GpuProcessHost::gpu_crash_count();
GpuDataManagerImpl::UnlockedSession session(owner_);
observer_list_->Notify(
- &GpuDataManagerObserver::OnGpuProcessCrashed, exit_code);
+ FROM_HERE, &GpuDataManagerObserver::OnGpuProcessCrashed, exit_code);
}
}
@@ -998,7 +999,7 @@ void GpuDataManagerImplPrivate::UpdateGpuSwitchingManager(
}
void GpuDataManagerImplPrivate::NotifyGpuInfoUpdate() {
- observer_list_->Notify(&GpuDataManagerObserver::OnGpuInfoUpdate);
+ observer_list_->Notify(FROM_HERE, &GpuDataManagerObserver::OnGpuInfoUpdate);
}
void GpuDataManagerImplPrivate::EnableSwiftShaderIfNecessary() {
@@ -1131,7 +1132,7 @@ void GpuDataManagerImplPrivate::Notify3DAPIBlocked(const GURL& url,
int render_view_id,
ThreeDAPIType requester) {
GpuDataManagerImpl::UnlockedSession session(owner_);
- observer_list_->Notify(&GpuDataManagerObserver::DidBlock3DAPIs,
+ observer_list_->Notify(FROM_HERE, &GpuDataManagerObserver::DidBlock3DAPIs,
url, render_process_id, render_view_id, requester);
}
« no previous file with comments | « components/storage_monitor/storage_monitor.cc ('k') | content/browser/service_worker/service_worker_context_core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698