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

Unified Diff: Source/core/inspector/InspectorTimelineAgent.h

Issue 59793003: Emit CommitFrame and BeginFrame for impl-side frames (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased on top of TraceEventDispatcher refactoring Created 7 years 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/inspector/InspectorTimelineAgent.h
diff --git a/Source/core/inspector/InspectorTimelineAgent.h b/Source/core/inspector/InspectorTimelineAgent.h
index 18e81966d88b46be58e759cc09848687c902356a..b00d22051ce0cff1ffdc2d3232b03d5271aa04d8 100644
--- a/Source/core/inspector/InspectorTimelineAgent.h
+++ b/Source/core/inspector/InspectorTimelineAgent.h
@@ -81,7 +81,6 @@ class ScriptCallStack;
class TimelineRecordStack;
class ExecutionContext;
class ScriptState;
-class TimelineTraceEventProcessor;
class WebSocketHandshakeRequest;
class WebSocketHandshakeResponse;
class XMLHttpRequest;
@@ -89,10 +88,12 @@ class XMLHttpRequest;
typedef String ErrorString;
namespace TimelineRecordType {
+extern const char ActivateLayerTree[];
+extern const char BeginFrame[];
extern const char DecodeImage[];
-extern const char Rasterize[];
-extern const char PaintSetup[];
extern const char GPUTask[];
+extern const char PaintSetup[];
+extern const char Rasterize[];
};
class TimelineTimeConverter {
@@ -147,7 +148,6 @@ public:
virtual void stop(ErrorString*, RefPtr<TypeBuilder::Array<TypeBuilder::Timeline::TimelineEvent> >& events);
void setLayerTreeId(int layerTreeId) { m_layerTreeId = layerTreeId; }
- int layerTreeId() const { return m_layerTreeId; }
int id() const { return m_id; }
void didCommitLoad();
@@ -253,6 +253,7 @@ private:
InspectorTimelineAgent(InstrumentingAgents*, InspectorPageAgent*, InspectorMemoryAgent*, InspectorDOMAgent*, InspectorOverlay*, InspectorCompositeState*, InspectorType, InspectorClient*);
// Trace event handlers
+ void onBeginImplSideFrame(const TraceEventDispatcher::TraceEvent&);
void onPaintSetupBegin(const TraceEventDispatcher::TraceEvent&);
void onPaintSetupEnd(const TraceEventDispatcher::TraceEvent&);
void onRasterTaskBegin(const TraceEventDispatcher::TraceEvent&);
@@ -263,6 +264,7 @@ private:
void onDrawLazyPixelRef(const TraceEventDispatcher::TraceEvent&);
void onDecodeLazyPixelRefBegin(const TraceEventDispatcher::TraceEvent&);
void onDecodeLazyPixelRefEnd(const TraceEventDispatcher::TraceEvent&);
+ void onActivateLayerTree(const TraceEventDispatcher::TraceEvent&);
void onLazyPixelRefDeleted(const TraceEventDispatcher::TraceEvent&);
void didFinishLoadingResource(unsigned long, bool didFail, double finishTime, Frame*);
@@ -286,6 +288,7 @@ private:
void addRecordToTimeline(PassRefPtr<JSONObject>);
void innerAddRecordToTimeline(PassRefPtr<JSONObject>);
void clearRecordStack();
+ PassRefPtr<JSONObject> createRecordForEvent(const TraceEventDispatcher::TraceEvent&, const String& type, PassRefPtr<JSONObject> data = 0);
void localToPageQuad(const RenderObject& renderer, const LayoutRect&, FloatQuad*);
long long nodeId(Node*);
@@ -308,7 +311,7 @@ private:
InspectorType m_inspectorType;
int m_id;
- int m_layerTreeId;
+ unsigned long long m_layerTreeId;
TimelineTimeConverter m_timeConverter;
int m_maxCallStackDepth;
« no previous file with comments | « Source/core/inspector/InspectorInstrumentation.cpp ('k') | Source/core/inspector/InspectorTimelineAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698