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

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

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.h
diff --git a/Source/core/rendering/GraphicsContextAnnotator.h b/Source/core/rendering/GraphicsContextAnnotator.h
index 8cbb6c0d842ce911d5032f506c12184218c5adef..75729e972217f5f5c855ffa3028900ef61bb60e1 100644
--- a/Source/core/rendering/GraphicsContextAnnotator.h
+++ b/Source/core/rendering/GraphicsContextAnnotator.h
@@ -32,7 +32,9 @@
#ifndef GraphicsContextAnnotator_h
#define GraphicsContextAnnotator_h
+// FIXME: Introduce a real paint API instead of piggybacking on GraphicsContextAnnotator.
#define ANNOTATE_GRAPHICS_CONTEXT(paintInfo, renderer) \
+ GraphicsContextAnnotator::trackPaintInvalidation(paintInfo, renderer); \
GraphicsContextAnnotator scopedGraphicsContextAnnotator; \
if (UNLIKELY(paintInfo.context->annotationMode())) \
scopedGraphicsContextAnnotator.annotate(paintInfo, renderer)
@@ -57,6 +59,8 @@ public:
void annotate(const PaintInfo&, const RenderObject*);
+ static void trackPaintInvalidation(const PaintInfo&, RenderObject*);
+
private:
void finishAnnotation();

Powered by Google App Engine
This is Rietveld 408576698