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

Unified Diff: third_party/WebKit/Source/core/workers/ThreadedWorkletGlobalScope.cpp

Issue 2857583003: Worker: Avoid sending IPC messages for features already counted (Closed)
Patch Set: wip Created 3 years, 7 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: third_party/WebKit/Source/core/workers/ThreadedWorkletGlobalScope.cpp
diff --git a/third_party/WebKit/Source/core/workers/ThreadedWorkletGlobalScope.cpp b/third_party/WebKit/Source/core/workers/ThreadedWorkletGlobalScope.cpp
index acd9721c296885ae406922112c574ce35eb646c7..f3a1a74a24d20b65beab94b6bc28b87524220f77 100644
--- a/third_party/WebKit/Source/core/workers/ThreadedWorkletGlobalScope.cpp
+++ b/third_party/WebKit/Source/core/workers/ThreadedWorkletGlobalScope.cpp
@@ -30,16 +30,16 @@ ThreadedWorkletGlobalScope::~ThreadedWorkletGlobalScope() {
DCHECK(!thread_);
}
-void ThreadedWorkletGlobalScope::CountFeature(UseCounter::Feature feature) {
+void ThreadedWorkletGlobalScope::ReportFeature(UseCounter::Feature feature) {
DCHECK(IsContextThread());
DCHECK(thread_);
thread_->GetWorkerReportingProxy().CountFeature(feature);
}
-void ThreadedWorkletGlobalScope::CountDeprecation(UseCounter::Feature feature) {
+void ThreadedWorkletGlobalScope::ReportDeprecation(
+ UseCounter::Feature feature) {
DCHECK(IsContextThread());
DCHECK(thread_);
- AddDeprecationMessage(feature);
thread_->GetWorkerReportingProxy().CountDeprecation(feature);
}

Powered by Google App Engine
This is Rietveld 408576698