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

Unified Diff: Source/core/rendering/GraphicsContextAnnotator.cpp

Issue 465223002: [ Do not submit ] Prototype for invalidation analysis Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix multiple paint bug, fix bug where nodes did not linkify properly, minor cleanups Created 6 years, 4 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
Index: Source/core/rendering/GraphicsContextAnnotator.cpp
diff --git a/Source/core/rendering/GraphicsContextAnnotator.cpp b/Source/core/rendering/GraphicsContextAnnotator.cpp
index 8276977da98c0baee828fd7ead89555fcfdc808e..573494bbd6b268dea7c2890947a31bb4c0526d19 100644
--- a/Source/core/rendering/GraphicsContextAnnotator.cpp
+++ b/Source/core/rendering/GraphicsContextAnnotator.cpp
@@ -33,6 +33,7 @@
#include "core/rendering/GraphicsContextAnnotator.h"
#include "core/inspector/InspectorNodeIds.h"
+#include "core/inspector/InspectorTraceEvents.h"
#include "core/rendering/PaintInfo.h"
#include "core/rendering/RenderObject.h"
#include "platform/graphics/GraphicsContextAnnotation.h"
@@ -86,6 +87,16 @@ static const char* paintPhaseName(blink::PaintPhase phase)
namespace blink {
+// FIXME: Introduce a real paint API instead of piggybacking on GraphicsContextAnnotator.
+void GraphicsContextAnnotator::trackPaintInvalidation(const PaintInfo&, RenderObject* renderer)
+{
+ TRACE_EVENT_INSTANT1(
+ TRACE_DISABLED_BY_DEFAULT("devtools.timeline.paintInvalidationTracking"),
+ "PaintInvalidationTracking",
+ "data",
+ InspectorPaintInvalidationTrackingEvent::data(renderer));
caseq 2014/08/26 12:19:07 Why do we need this? We already have nodeId in the
+}
+
void GraphicsContextAnnotator::annotate(const PaintInfo& paintInfo, const RenderObject* object)
{
ASSERT(!m_context);

Powered by Google App Engine
This is Rietveld 408576698