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

Unified Diff: third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.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/MainThreadWorkletGlobalScope.cpp
diff --git a/third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.cpp b/third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.cpp
index 0e6ea30ea2770a368a812d5832cea7e7ecbc9340..daaefd86401e725b90794ff5740b42da68f2a005 100644
--- a/third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.cpp
+++ b/third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.cpp
@@ -26,19 +26,18 @@ MainThreadWorkletGlobalScope::MainThreadWorkletGlobalScope(
MainThreadWorkletGlobalScope::~MainThreadWorkletGlobalScope() {}
-void MainThreadWorkletGlobalScope::CountFeature(UseCounter::Feature feature) {
+void MainThreadWorkletGlobalScope::ReportFeature(UseCounter::Feature feature) {
DCHECK(IsMainThread());
// A parent document is on the same thread, so just record API use in the
// document's UseCounter.
UseCounter::Count(GetFrame(), feature);
}
-void MainThreadWorkletGlobalScope::CountDeprecation(
+void MainThreadWorkletGlobalScope::ReportDeprecation(
UseCounter::Feature feature) {
DCHECK(IsMainThread());
// A parent document is on the same thread, so just record API use in the
// document's UseCounter.
- AddDeprecationMessage(feature);
Deprecation::CountDeprecation(GetFrame(), feature);
}

Powered by Google App Engine
This is Rietveld 408576698