Bug 1517921 [wpt PR 14728] - [manifest] Make sure deleted tests are removed from...
[gecko.git] / docshell / base / timeline / CompositeTimelineMarker.h
blobcd2896fefa32251c9949dea2f46dcbcf69af7f44
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef mozilla_CompositeTimelineMarker_h_
8 #define mozilla_CompositeTimelineMarker_h_
10 #include "TimelineMarker.h"
11 #include "mozilla/dom/ProfileTimelineMarkerBinding.h"
13 namespace mozilla {
15 class CompositeTimelineMarker : public TimelineMarker {
16 public:
17 CompositeTimelineMarker(const TimeStamp& aTime,
18 MarkerTracingType aTracingType)
19 : TimelineMarker("Composite", aTime, aTracingType) {
20 // Even though these markers end up being created on the main thread in the
21 // content or chrome processes, they actually trace down code in the
22 // compositor parent process. All the information for creating these markers
23 // is sent along via IPC to an nsView when a composite finishes.
24 // Mark this as 'off the main thread' to style it differently in frontends.
25 SetOffMainThread(true);
29 } // namespace mozilla
31 #endif // mozilla_CompositeTimelineMarker_h_