Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(275)

Side by Side Diff: Source/core/inspector/TimelineTraceEventProcessor.h

Issue 18344005: DevTools: expose setLayerTreeId() so we can relate events from LayerTreeHost (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixed another regression Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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&);
233 void onPaintLayerBegin(const TraceEvent&);
234 void onPaintLayerEnd(const TraceEvent&);
231 void onPaintSetupBegin(const TraceEvent&); 235 void onPaintSetupBegin(const TraceEvent&);
232 void onPaintSetupEnd(const TraceEvent&); 236 void onPaintSetupEnd(const TraceEvent&);
233 void onPaintLayerBegin(const TraceEvent&);
234 void onPaintLayerEnd(const TraceEvent&);
235 void onRasterTaskBegin(const TraceEvent&); 237 void onRasterTaskBegin(const TraceEvent&);
236 void onRasterTaskEnd(const TraceEvent&); 238 void onRasterTaskEnd(const TraceEvent&);
239 void onPaint(const TraceEvent&);
237 void onImageDecodeTaskBegin(const TraceEvent&); 240 void onImageDecodeTaskBegin(const TraceEvent&);
238 void onImageDecodeTaskEnd(const TraceEvent&); 241 void onImageDecodeTaskEnd(const TraceEvent&);
239 void onImageDecodeBegin(const TraceEvent&); 242 void onImageDecodeBegin(const TraceEvent&);
240 void onImageDecodeEnd(const TraceEvent&); 243 void onImageDecodeEnd(const TraceEvent&);
241 void onLayerDeleted(const TraceEvent&); 244 void onLayerDeleted(const TraceEvent&);
242 void onPaint(const TraceEvent&);
243 245
244 WeakPtr<InspectorTimelineAgent> m_timelineAgent; 246 WeakPtr<InspectorTimelineAgent> m_timelineAgent;
245 TimelineTimeConverter m_timeConverter; 247 TimelineTimeConverter m_timeConverter;
246 InspectorClient* m_inspectorClient; 248 InspectorClient* m_inspectorClient;
247 unsigned long long m_pageId; 249 unsigned long long m_pageId;
250 int m_layerTreeId;
248 251
249 typedef HashMap<std::pair<String, int>, TraceEventHandler> HandlersMap; 252 typedef HashMap<std::pair<String, int>, TraceEventHandler> HandlersMap;
250 HandlersMap m_handlersByType; 253 HandlersMap m_handlersByType;
251 Mutex m_backgroundEventsMutex; 254 Mutex m_backgroundEventsMutex;
252 Vector<TraceEvent> m_backgroundEvents; 255 Vector<TraceEvent> m_backgroundEvents;
253 256
254 typedef HashMap<ThreadIdentifier, TimelineThreadState> ThreadStateMap; 257 typedef HashMap<ThreadIdentifier, TimelineThreadState> ThreadStateMap;
255 ThreadStateMap m_threadStates; 258 ThreadStateMap m_threadStates;
256 259
257 HashMap<unsigned long long, long long> m_layerToNodeMap; 260 HashMap<unsigned long long, long long> m_layerToNodeMap;
258 unsigned long long m_layerId; 261 unsigned long long m_layerId;
259 double m_paintSetupStart; 262 double m_paintSetupStart;
260 double m_paintSetupEnd; 263 double m_paintSetupEnd;
261 }; 264 };
262 265
263 } // namespace WebCore 266 } // namespace WebCore
264 267
265 #endif // !defined(TimelineTraceEventProcessor_h) 268 #endif // !defined(TimelineTraceEventProcessor_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorTimelineAgent.cpp ('k') | Source/core/inspector/TimelineTraceEventProcessor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698