OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 void setFrameIdentifier(TypeBuilder::Timeline::TimelineEvent* record, LocalF
rame*); | 279 void setFrameIdentifier(TypeBuilder::Timeline::TimelineEvent* record, LocalF
rame*); |
280 void populateImageDetails(JSONObject* data, const RenderImage&); | 280 void populateImageDetails(JSONObject* data, const RenderImage&); |
281 | 281 |
282 void pushGCEventRecords(); | 282 void pushGCEventRecords(); |
283 | 283 |
284 void didCompleteCurrentRecord(const String& type); | 284 void didCompleteCurrentRecord(const String& type); |
285 void unwindRecordStack(); | 285 void unwindRecordStack(); |
286 | 286 |
287 void commitFrameRecord(); | 287 void commitFrameRecord(); |
288 | 288 |
289 void addRecordToTimeline(PassRefPtr<TypeBuilder::Timeline::TimelineEvent>); | 289 void addRecordToTimeline(PassRefPtr<TypeBuilder::Timeline::TimelineEvent>, d
ouble ts); |
290 void innerAddRecordToTimeline(PassRefPtr<TypeBuilder::Timeline::TimelineEven
t>); | 290 void innerAddRecordToTimeline(PassRefPtr<TypeBuilder::Timeline::TimelineEven
t>); |
291 void clearRecordStack(); | 291 void clearRecordStack(); |
292 PassRefPtr<TypeBuilder::Timeline::TimelineEvent> createRecordForEvent(const
TraceEventDispatcher::TraceEvent&, const String& type, PassRefPtr<JSONObject> da
ta); | 292 PassRefPtr<TypeBuilder::Timeline::TimelineEvent> createRecordForEvent(const
TraceEventDispatcher::TraceEvent&, const String& type, PassRefPtr<JSONObject> da
ta); |
293 | 293 |
294 void localToPageQuad(const RenderObject& renderer, const LayoutRect&, FloatQ
uad*); | 294 void localToPageQuad(const RenderObject& renderer, const LayoutRect&, FloatQ
uad*); |
295 long long nodeId(Node*); | 295 long long nodeId(Node*); |
296 long long nodeId(RenderObject*); | 296 long long nodeId(RenderObject*); |
297 void releaseNodeIds(); | 297 void releaseNodeIds(); |
298 | 298 |
299 double timestamp(); | 299 double timestamp(); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 RenderImage* m_imageBeingPainted; | 333 RenderImage* m_imageBeingPainted; |
334 HashMap<unsigned long long, long long> m_layerToNodeMap; | 334 HashMap<unsigned long long, long long> m_layerToNodeMap; |
335 double m_paintSetupStart; | 335 double m_paintSetupStart; |
336 double m_paintSetupEnd; | 336 double m_paintSetupEnd; |
337 RefPtr<JSONObject> m_gpuTask; | 337 RefPtr<JSONObject> m_gpuTask; |
338 unsigned m_styleRecalcElementCounter; | 338 unsigned m_styleRecalcElementCounter; |
339 typedef HashMap<ThreadIdentifier, TimelineThreadState> ThreadStateMap; | 339 typedef HashMap<ThreadIdentifier, TimelineThreadState> ThreadStateMap; |
340 ThreadStateMap m_threadStates; | 340 ThreadStateMap m_threadStates; |
341 bool m_mayEmitFirstPaint; | 341 bool m_mayEmitFirstPaint; |
342 HashSet<String> m_liveEvents; | 342 HashSet<String> m_liveEvents; |
| 343 double m_lastProgressTimestamp; |
343 }; | 344 }; |
344 | 345 |
345 } // namespace WebCore | 346 } // namespace WebCore |
346 | 347 |
347 #endif // !defined(InspectorTimelineAgent_h) | 348 #endif // !defined(InspectorTimelineAgent_h) |
OLD | NEW |