Line data Source code
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/. */
6 :
7 : #ifndef mozilla_CompositeTimelineMarker_h_
8 : #define mozilla_CompositeTimelineMarker_h_
9 :
10 : #include "TimelineMarker.h"
11 : #include "mozilla/dom/ProfileTimelineMarkerBinding.h"
12 :
13 : namespace mozilla {
14 :
15 0 : class CompositeTimelineMarker : public TimelineMarker
16 : {
17 : public:
18 0 : CompositeTimelineMarker(const TimeStamp& aTime,
19 : MarkerTracingType aTracingType)
20 0 : : TimelineMarker("Composite", aTime, aTracingType)
21 : {
22 : // Even though these markers end up being created on the main thread in the
23 : // content or chrome processes, they actually trace down code in the
24 : // compositor parent process. All the information for creating these markers
25 : // is sent along via IPC to an nsView when a composite finishes.
26 : // Mark this as 'off the main thread' to style it differently in frontends.
27 0 : SetOffMainThread(true);
28 0 : }
29 : };
30 :
31 : } // namespace mozilla
32 :
33 : #endif // mozilla_CompositeTimelineMarker_h_
|