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

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

Issue 16878004: DevTools: add instrumentation for deferred canvas rasterization (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 } 223 }
224 bool maybeEnterLayerTask(const TraceEvent&, TimelineThreadState&); 224 bool maybeEnterLayerTask(const TraceEvent&, TimelineThreadState&);
225 void leaveLayerTask(TimelineThreadState&); 225 void leaveLayerTask(TimelineThreadState&);
226 226
227 void processBackgroundEvents(); 227 void processBackgroundEvents();
228 PassRefPtr<JSONObject> createRecord(const TraceEvent&, const String& recordT ype, PassRefPtr<JSONObject> data = 0); 228 PassRefPtr<JSONObject> createRecord(const TraceEvent&, const String& recordT ype, PassRefPtr<JSONObject> data = 0);
229 229
230 void registerHandler(const char* name, TraceEventPhase, TraceEventHandler); 230 void registerHandler(const char* name, TraceEventPhase, TraceEventHandler);
231 231
232 void onBeginFrame(const TraceEvent&); 232 void onBeginFrame(const TraceEvent&);
233 void onUpdateLayerBegin(const TraceEvent&);
234 void onUpdateLayerEnd(const TraceEvent&);
233 void onPaintSetupBegin(const TraceEvent&); 235 void onPaintSetupBegin(const TraceEvent&);
234 void onPaintSetupEnd(const TraceEvent&); 236 void onPaintSetupEnd(const TraceEvent&);
235 void onPaintLayerBegin(const TraceEvent&);
236 void onPaintLayerEnd(const TraceEvent&);
237 void onRasterTaskBegin(const TraceEvent&); 237 void onRasterTaskBegin(const TraceEvent&);
238 void onRasterTaskEnd(const TraceEvent&); 238 void onRasterTaskEnd(const TraceEvent&);
239 void onPaint(const TraceEvent&);
239 void onImageDecodeTaskBegin(const TraceEvent&); 240 void onImageDecodeTaskBegin(const TraceEvent&);
240 void onImageDecodeTaskEnd(const TraceEvent&); 241 void onImageDecodeTaskEnd(const TraceEvent&);
241 void onImageDecodeBegin(const TraceEvent&); 242 void onImageDecodeBegin(const TraceEvent&);
242 void onImageDecodeEnd(const TraceEvent&); 243 void onImageDecodeEnd(const TraceEvent&);
244 void onRasterizeCanvasBegin(const TraceEvent&);
245 void onRasterizeCanvasEnd(const TraceEvent&);
243 void onLayerDeleted(const TraceEvent&); 246 void onLayerDeleted(const TraceEvent&);
244 void onPaint(const TraceEvent&);
245 247
246 WeakPtr<InspectorTimelineAgent> m_timelineAgent; 248 WeakPtr<InspectorTimelineAgent> m_timelineAgent;
247 TimelineTimeConverter m_timeConverter; 249 TimelineTimeConverter m_timeConverter;
248 InspectorClient* m_inspectorClient; 250 InspectorClient* m_inspectorClient;
249 unsigned long long m_pageId; 251 unsigned long long m_pageId;
252 int m_layerTreeId;
250 253
251 typedef HashMap<std::pair<String, int>, TraceEventHandler> HandlersMap; 254 typedef HashMap<std::pair<String, int>, TraceEventHandler> HandlersMap;
252 HandlersMap m_handlersByType; 255 HandlersMap m_handlersByType;
253 Mutex m_backgroundEventsMutex; 256 Mutex m_backgroundEventsMutex;
254 Vector<TraceEvent> m_backgroundEvents; 257 Vector<TraceEvent> m_backgroundEvents;
255 258
256 typedef HashMap<ThreadIdentifier, TimelineThreadState> ThreadStateMap; 259 typedef HashMap<ThreadIdentifier, TimelineThreadState> ThreadStateMap;
257 ThreadStateMap m_threadStates; 260 ThreadStateMap m_threadStates;
258 261
259 HashMap<unsigned long long, long long> m_layerToNodeMap; 262 HashMap<unsigned long long, long long> m_layerToNodeMap;
260 unsigned long long m_layerId; 263 unsigned long long m_layerId;
261 double m_paintSetupStart; 264 double m_paintSetupStart;
262 double m_paintSetupEnd; 265 double m_paintSetupEnd;
263 }; 266 };
264 267
265 } // namespace WebCore 268 } // namespace WebCore
266 269
267 #endif // !defined(TimelineTraceEventProcessor_h) 270 #endif // !defined(TimelineTraceEventProcessor_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698