1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef WebFrameTimingEvent_h
6 #define WebFrameTimingEvent_h
10 // A struct to pass PerformanceRenderEvent or PerformanceCompositeEvent info
12 struct WebFrameTimingEvent
{
13 WebFrameTimingEvent(unsigned sourceFrame
, double startTime
, double finishTime
)
14 : sourceFrame(sourceFrame
)
15 , startTime(startTime
)
16 , finishTime(finishTime
)
20 WebFrameTimingEvent(unsigned sourceFrame
, double startTime
)
21 : sourceFrame(sourceFrame
)
22 , startTime(startTime
)
26 WebFrameTimingEvent() { }
28 WebFrameTimingEvent
& operator=(const WebFrameTimingEvent
& rhs
)
30 sourceFrame
= rhs
.sourceFrame
;
31 startTime
= rhs
.startTime
;
32 finishTime
= rhs
.finishTime
;