Chromium Code Reviews| 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); |