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

Unified Diff: third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineModelFilter.js

Issue 2803413002: DevTools: brush up paint marker rendering, sort experiments, restore event markers on the overview. (Closed)
Patch Set: fixed the test Created 3 years, 8 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 | « third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineModel.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineModelFilter.js
diff --git a/third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineModelFilter.js b/third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineModelFilter.js
index 1f8033b5bc32da9679f19b4dc56f44dee42ebe8f..77b20026d4eaa96e3a257817363842c266e4cfde 100644
--- a/third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineModelFilter.js
+++ b/third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineModelFilter.js
@@ -44,6 +44,25 @@ TimelineModel.TimelineVisibleEventsFilter = class extends TimelineModel.Timeline
}
};
+TimelineModel.TimelineInvisibleEventsFilter = class extends TimelineModel.TimelineModelFilter {
+ /**
+ * @param {!Array<string>} invisibleTypes
+ */
+ constructor(invisibleTypes) {
+ super();
+ this._invisibleTypes = new Set(invisibleTypes);
+ }
+
+ /**
+ * @override
+ * @param {!SDK.TracingModel.Event} event
+ * @return {boolean}
+ */
+ accept(event) {
+ return !this._invisibleTypes.has(TimelineModel.TimelineVisibleEventsFilter._eventType(event));
+ }
+};
+
TimelineModel.ExclusiveNameFilter = class extends TimelineModel.TimelineModelFilter {
/**
* @param {!Array<string>} excludeNames
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineModel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698