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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 { | 120 { |
121 return adoptPtr(new InspectorTimelineAgent(pageAgent, domAgent, layerTre
eAgent, overlay, type, client)); | 121 return adoptPtr(new InspectorTimelineAgent(pageAgent, domAgent, layerTre
eAgent, overlay, type, client)); |
122 } | 122 } |
123 | 123 |
124 virtual ~InspectorTimelineAgent(); | 124 virtual ~InspectorTimelineAgent(); |
125 | 125 |
126 virtual void setFrontend(InspectorFrontend*) OVERRIDE; | 126 virtual void setFrontend(InspectorFrontend*) OVERRIDE; |
127 virtual void clearFrontend() OVERRIDE; | 127 virtual void clearFrontend() OVERRIDE; |
128 virtual void restore() OVERRIDE; | 128 virtual void restore() OVERRIDE; |
129 | 129 |
130 virtual void enable(ErrorString*, const String* traceEventCategoryFilter) OV
ERRIDE; | 130 virtual void enable(ErrorString*) OVERRIDE; |
131 virtual void disable(ErrorString*) OVERRIDE; | 131 virtual void disable(ErrorString*) OVERRIDE; |
132 virtual void start(ErrorString*, const int* maxCallStackDepth, const bool* b
ufferEvents, const String* liveEvents, const bool* includeCounters, const bool*
includeGPUEvents) OVERRIDE; | 132 virtual void start(ErrorString*, const int* maxCallStackDepth, const bool* b
ufferEvents, const String* liveEvents, const bool* includeCounters, const bool*
includeGPUEvents) OVERRIDE; |
133 virtual void stop(ErrorString*, RefPtr<TypeBuilder::Array<TypeBuilder::Timel
ine::TimelineEvent> >& events) OVERRIDE; | 133 virtual void stop(ErrorString*, RefPtr<TypeBuilder::Array<TypeBuilder::Timel
ine::TimelineEvent> >& events) OVERRIDE; |
134 | 134 |
135 void setLayerTreeId(int layerTreeId) { m_layerTreeId = layerTreeId; } | 135 void setLayerTreeId(int layerTreeId) { m_layerTreeId = layerTreeId; } |
136 int id() const { return m_id; } | 136 int id() const { return m_id; } |
137 | 137 |
138 void didCommitLoad(); | 138 void didCommitLoad(); |
139 | 139 |
140 // Methods called from WebCore. | 140 // Methods called from WebCore. |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 double m_paintSetupStart; | 320 double m_paintSetupStart; |
321 double m_paintSetupEnd; | 321 double m_paintSetupEnd; |
322 RefPtr<JSONObject> m_gpuTask; | 322 RefPtr<JSONObject> m_gpuTask; |
323 RefPtr<JSONValue> m_pendingLayerTreeData; | 323 RefPtr<JSONValue> m_pendingLayerTreeData; |
324 unsigned m_styleRecalcElementCounter; | 324 unsigned m_styleRecalcElementCounter; |
325 typedef HashMap<ThreadIdentifier, TimelineThreadState> ThreadStateMap; | 325 typedef HashMap<ThreadIdentifier, TimelineThreadState> ThreadStateMap; |
326 ThreadStateMap m_threadStates; | 326 ThreadStateMap m_threadStates; |
327 bool m_mayEmitFirstPaint; | 327 bool m_mayEmitFirstPaint; |
328 HashSet<String> m_liveEvents; | 328 HashSet<String> m_liveEvents; |
329 double m_lastProgressTimestamp; | 329 double m_lastProgressTimestamp; |
330 bool m_disableTracingOnStop; | |
331 }; | 330 }; |
332 | 331 |
333 } // namespace WebCore | 332 } // namespace WebCore |
334 | 333 |
335 #endif // !defined(InspectorTimelineAgent_h) | 334 #endif // !defined(InspectorTimelineAgent_h) |
OLD | NEW |