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

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

Issue 16896007: Timeline: add support 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) 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 148
149 void willPaint(RenderObject*); 149 void willPaint(RenderObject*);
150 void didPaint(RenderObject*, GraphicsContext*, const LayoutRect&); 150 void didPaint(RenderObject*, GraphicsContext*, const LayoutRect&);
151 151
152 void willScrollLayer(Frame*); 152 void willScrollLayer(Frame*);
153 void didScrollLayer(); 153 void didScrollLayer();
154 154
155 void willComposite(); 155 void willComposite();
156 void didComposite(); 156 void didComposite();
157 157
158 void willUpdateLayer(int layerId);
159 void didUpdateLayer();
160
158 bool willWriteHTML(Document*, unsigned startLine); 161 bool willWriteHTML(Document*, unsigned startLine);
159 void didWriteHTML(unsigned endLine); 162 void didWriteHTML(unsigned endLine);
160 163
161 void didInstallTimer(ScriptExecutionContext* context, int timerId, int timeo ut, bool singleShot); 164 void didInstallTimer(ScriptExecutionContext* context, int timerId, int timeo ut, bool singleShot);
162 void didRemoveTimer(ScriptExecutionContext* context, int timerId); 165 void didRemoveTimer(ScriptExecutionContext* context, int timerId);
163 bool willFireTimer(ScriptExecutionContext* context, int timerId); 166 bool willFireTimer(ScriptExecutionContext* context, int timerId);
164 void didFireTimer(); 167 void didFireTimer();
165 168
166 bool willDispatchXHRReadyStateChangeEvent(ScriptExecutionContext* context, X MLHttpRequest* request); 169 bool willDispatchXHRReadyStateChangeEvent(ScriptExecutionContext* context, X MLHttpRequest* request);
167 void didDispatchXHRReadyStateChangeEvent(); 170 void didDispatchXHRReadyStateChangeEvent();
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 void didCloseWebSocket(Document*, unsigned long identifier); 204 void didCloseWebSocket(Document*, unsigned long identifier);
202 205
203 // ScriptGCEventListener methods. 206 // ScriptGCEventListener methods.
204 virtual void didGC(double, double, size_t); 207 virtual void didGC(double, double, size_t);
205 208
206 // PlatformInstrumentationClient methods. 209 // PlatformInstrumentationClient methods.
207 virtual void willDecodeImage(const String& imageType) OVERRIDE; 210 virtual void willDecodeImage(const String& imageType) OVERRIDE;
208 virtual void didDecodeImage() OVERRIDE; 211 virtual void didDecodeImage() OVERRIDE;
209 virtual void willResizeImage(bool shouldCache) OVERRIDE; 212 virtual void willResizeImage(bool shouldCache) OVERRIDE;
210 virtual void didResizeImage() OVERRIDE; 213 virtual void didResizeImage() OVERRIDE;
214 virtual void willRasterizeCanvas() OVERRIDE;
215 virtual void didRasterizeCanvas() OVERRIDE;
211 216
212 private: 217 private:
213 friend class TimelineRecordStack; 218 friend class TimelineRecordStack;
214 friend class TimelineTraceEventProcessor; 219 friend class TimelineTraceEventProcessor;
215 220
216 struct TimelineRecordEntry { 221 struct TimelineRecordEntry {
217 TimelineRecordEntry(PassRefPtr<InspectorObject> record, PassRefPtr<Inspe ctorObject> data, PassRefPtr<InspectorArray> children, const String& type, size_ t usedHeapSizeAtStart) 222 TimelineRecordEntry(PassRefPtr<InspectorObject> record, PassRefPtr<Inspe ctorObject> data, PassRefPtr<InspectorArray> children, const String& type, size_ t usedHeapSizeAtStart)
218 : record(record), data(data), children(children), type(type), usedHe apSizeAtStart(usedHeapSizeAtStart) 223 : record(record), data(data), children(children), type(type), usedHe apSizeAtStart(usedHeapSizeAtStart)
219 { 224 {
220 } 225 }
221 RefPtr<InspectorObject> record; 226 RefPtr<InspectorObject> record;
222 RefPtr<InspectorObject> data; 227 RefPtr<InspectorObject> data;
223 RefPtr<InspectorArray> children; 228 RefPtr<InspectorArray> children;
224 String type; 229 String type;
225 size_t usedHeapSizeAtStart; 230 size_t usedHeapSizeAtStart;
226 }; 231 };
227 232
228 InspectorTimelineAgent(InstrumentingAgents*, InspectorPageAgent*, InspectorM emoryAgent*, InspectorDOMAgent*, InspectorCompositeState*, InspectorType, Inspec torClient*); 233 InspectorTimelineAgent(InstrumentingAgents*, InspectorPageAgent*, InspectorM emoryAgent*, InspectorDOMAgent*, InspectorCompositeState*, InspectorType, Inspec torClient*);
229 234
230 void didFinishLoadingResource(unsigned long, bool didFail, double finishTime , Frame*); 235 void didFinishLoadingResource(unsigned long, bool didFail, double finishTime , Frame*);
231 236
232 void sendEvent(PassRefPtr<InspectorObject>); 237 void sendEvent(PassRefPtr<InspectorObject>);
233 void appendRecord(PassRefPtr<InspectorObject> data, const String& type, bool captureCallStack, Frame*); 238 void appendRecord(PassRefPtr<InspectorObject> data, const String& type, bool captureCallStack, Frame*);
234 void pushCurrentRecord(PassRefPtr<InspectorObject>, const String& type, bool captureCallStack, Frame*, bool hasLowLevelDetails = false); 239 void pushCurrentRecord(PassRefPtr<InspectorObject>, const String& type, bool captureCallStack, Frame*, bool hasLowLevelDetails = false);
240 void enablePlatformInstrumentation();
241 void disablePlatformInstrumentation();
235 242
236 void setDOMCounters(TypeBuilder::Timeline::TimelineEvent* record); 243 void setDOMCounters(TypeBuilder::Timeline::TimelineEvent* record);
237 void setNativeHeapStatistics(TypeBuilder::Timeline::TimelineEvent* record); 244 void setNativeHeapStatistics(TypeBuilder::Timeline::TimelineEvent* record);
238 void setFrameIdentifier(InspectorObject* record, Frame*); 245 void setFrameIdentifier(InspectorObject* record, Frame*);
239 void pushGCEventRecords(); 246 void pushGCEventRecords();
240 247
241 void didCompleteCurrentRecord(const String& type); 248 void didCompleteCurrentRecord(const String& type);
242 249
243 void setHeapSizeStatistics(InspectorObject* record); 250 void setHeapSizeStatistics(InspectorObject* record);
244 void commitFrameRecord(); 251 void commitFrameRecord();
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 InspectorType m_inspectorType; 290 InspectorType m_inspectorType;
284 InspectorClient* m_client; 291 InspectorClient* m_client;
285 WeakPtrFactory<InspectorTimelineAgent> m_weakFactory; 292 WeakPtrFactory<InspectorTimelineAgent> m_weakFactory;
286 RefPtr<TimelineTraceEventProcessor> m_traceEventProcessor; 293 RefPtr<TimelineTraceEventProcessor> m_traceEventProcessor;
287 unsigned m_styleRecalcElementCounter; 294 unsigned m_styleRecalcElementCounter;
288 }; 295 };
289 296
290 } // namespace WebCore 297 } // namespace WebCore
291 298
292 #endif // !defined(InspectorTimelineAgent_h) 299 #endif // !defined(InspectorTimelineAgent_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorController.cpp ('k') | Source/core/inspector/InspectorTimelineAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698