| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 } | 221 } |
| 222 bool maybeEnterLayerTask(const TraceEvent&, TimelineThreadState&); | 222 bool maybeEnterLayerTask(const TraceEvent&, TimelineThreadState&); |
| 223 void leaveLayerTask(TimelineThreadState&); | 223 void leaveLayerTask(TimelineThreadState&); |
| 224 | 224 |
| 225 void processBackgroundEvents(); | 225 void processBackgroundEvents(); |
| 226 PassRefPtr<JSONObject> createRecord(const TraceEvent&, const String& recordT
ype, PassRefPtr<JSONObject> data = 0); | 226 PassRefPtr<JSONObject> createRecord(const TraceEvent&, const String& recordT
ype, PassRefPtr<JSONObject> data = 0); |
| 227 | 227 |
| 228 void registerHandler(const char* name, TraceEventPhase, TraceEventHandler); | 228 void registerHandler(const char* name, TraceEventPhase, TraceEventHandler); |
| 229 | 229 |
| 230 void onBeginFrame(const TraceEvent&); | 230 void onBeginFrame(const TraceEvent&); |
| 231 void onUpdateLayerBegin(const TraceEvent&); |
| 232 void onUpdateLayerEnd(const TraceEvent&); |
| 231 void onPaintSetupBegin(const TraceEvent&); | 233 void onPaintSetupBegin(const TraceEvent&); |
| 232 void onPaintSetupEnd(const TraceEvent&); | 234 void onPaintSetupEnd(const TraceEvent&); |
| 233 void onPaintLayerBegin(const TraceEvent&); | |
| 234 void onPaintLayerEnd(const TraceEvent&); | |
| 235 void onRasterTaskBegin(const TraceEvent&); | 235 void onRasterTaskBegin(const TraceEvent&); |
| 236 void onRasterTaskEnd(const TraceEvent&); | 236 void onRasterTaskEnd(const TraceEvent&); |
| 237 void onPaint(const TraceEvent&); |
| 237 void onImageDecodeTaskBegin(const TraceEvent&); | 238 void onImageDecodeTaskBegin(const TraceEvent&); |
| 238 void onImageDecodeTaskEnd(const TraceEvent&); | 239 void onImageDecodeTaskEnd(const TraceEvent&); |
| 239 void onImageDecodeBegin(const TraceEvent&); | 240 void onImageDecodeBegin(const TraceEvent&); |
| 240 void onImageDecodeEnd(const TraceEvent&); | 241 void onImageDecodeEnd(const TraceEvent&); |
| 241 void onLayerDeleted(const TraceEvent&); | 242 void onLayerDeleted(const TraceEvent&); |
| 242 void onPaint(const TraceEvent&); | |
| 243 | 243 |
| 244 WeakPtr<InspectorTimelineAgent> m_timelineAgent; | 244 WeakPtr<InspectorTimelineAgent> m_timelineAgent; |
| 245 TimelineTimeConverter m_timeConverter; | 245 TimelineTimeConverter m_timeConverter; |
| 246 InspectorClient* m_inspectorClient; | 246 InspectorClient* m_inspectorClient; |
| 247 unsigned long long m_pageId; | 247 unsigned long long m_pageId; |
| 248 int m_layerTreeId; |
| 248 | 249 |
| 249 typedef HashMap<std::pair<String, int>, TraceEventHandler> HandlersMap; | 250 typedef HashMap<std::pair<String, int>, TraceEventHandler> HandlersMap; |
| 250 HandlersMap m_handlersByType; | 251 HandlersMap m_handlersByType; |
| 251 Mutex m_backgroundEventsMutex; | 252 Mutex m_backgroundEventsMutex; |
| 252 Vector<TraceEvent> m_backgroundEvents; | 253 Vector<TraceEvent> m_backgroundEvents; |
| 253 | 254 |
| 254 typedef HashMap<ThreadIdentifier, TimelineThreadState> ThreadStateMap; | 255 typedef HashMap<ThreadIdentifier, TimelineThreadState> ThreadStateMap; |
| 255 ThreadStateMap m_threadStates; | 256 ThreadStateMap m_threadStates; |
| 256 | 257 |
| 257 HashMap<unsigned long long, long long> m_layerToNodeMap; | 258 HashMap<unsigned long long, long long> m_layerToNodeMap; |
| 258 unsigned long long m_layerId; | 259 unsigned long long m_layerId; |
| 259 double m_paintSetupStart; | 260 double m_paintSetupStart; |
| 260 double m_paintSetupEnd; | 261 double m_paintSetupEnd; |
| 261 }; | 262 }; |
| 262 | 263 |
| 263 } // namespace WebCore | 264 } // namespace WebCore |
| 264 | 265 |
| 265 #endif // !defined(TimelineTraceEventProcessor_h) | 266 #endif // !defined(TimelineTraceEventProcessor_h) |
| OLD | NEW |