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

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

Issue 565793003: [Invalidation Tracking] Add trace events for compositor based invalidations (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: use cmacro Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/inspector/InspectorTraceEvents.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorTraceEvents.h
diff --git a/Source/core/inspector/InspectorTraceEvents.h b/Source/core/inspector/InspectorTraceEvents.h
index 7f088b6fbc3e2388d55296fb43d7cc0ae18c7a3c..e5e5c10a7504234f8df3c5abda7a990a5df4a2f0 100644
--- a/Source/core/inspector/InspectorTraceEvents.h
+++ b/Source/core/inspector/InspectorTraceEvents.h
@@ -20,8 +20,9 @@ class GraphicsLayer;
class KURL;
class LayoutRect;
class LocalFrame;
-class RenderObject;
class RenderImage;
+class RenderLayer;
+class RenderObject;
class ResourceRequest;
class ResourceResponse;
class ScriptSourceCode;
@@ -100,6 +101,24 @@ public:
static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(ExecutionContext*, XMLHttpRequest*);
};
+class InspectorLayerInvalidationTrackingEvent {
+public:
+ static const char SquashingLayerGeometryWasUpdated[];
+ static const char AddedToSquashingLayer[];
+ static const char RemovedFromSquashingLayer[];
+ static const char ReflectionLayerChanged[];
+ static const char NewCompositedLayer[];
+ static const char AncestorRequiresNewLayer[];
+
+ static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(const RenderLayer*, const char* reason);
+};
+#define TRACE_LAYER_INVALIDATION(LAYER, REASON) \
+ TRACE_EVENT_INSTANT1( \
+ TRACE_DISABLED_BY_DEFAULT("devtools.timeine.invalidationTracking"), \
+ "LayerInvalidationTracking", \
+ "data", \
+ InspectorLayerInvalidationTrackingEvent::data((LAYER), (REASON)))
+
class InspectorPaintEvent {
public:
static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(RenderObject*, const LayoutRect& clipRect, const GraphicsLayer*);
« no previous file with comments | « no previous file | Source/core/inspector/InspectorTraceEvents.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698