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

Unified Diff: Source/platform/graphics/GraphicsLayerDebugInfo.h

Issue 498193003: Add |GraphicsLayerDebugInfo::getAnnotatedInvalidationRects| (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: tkent-san review 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 | « Source/platform/graphics/GraphicsLayer.cpp ('k') | Source/platform/graphics/GraphicsLayerDebugInfo.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/GraphicsLayerDebugInfo.h
diff --git a/Source/platform/graphics/GraphicsLayerDebugInfo.h b/Source/platform/graphics/GraphicsLayerDebugInfo.h
index 019e571a211fffe8baec51f4feed1d95262b213c..31b9c612e8c384657caa1eaa5c40f4475e01794d 100644
--- a/Source/platform/graphics/GraphicsLayerDebugInfo.h
+++ b/Source/platform/graphics/GraphicsLayerDebugInfo.h
@@ -35,6 +35,7 @@
#include "platform/geometry/LayoutRect.h"
#include "platform/graphics/CompositingReasons.h"
#include "public/platform/WebGraphicsLayerDebugInfo.h"
+#include "public/platform/WebInvalidationDebugAnnotations.h"
#include "wtf/Vector.h"
@@ -46,6 +47,7 @@ public:
virtual ~GraphicsLayerDebugInfo();
virtual void appendAsTraceFormat(WebString* out) const OVERRIDE;
+ virtual void getAnnotatedInvalidationRects(WebVector<WebAnnotatedInvalidationRect>& rects) const OVERRIDE;
GraphicsLayerDebugInfo* clone() const;
@@ -55,6 +57,9 @@ public:
void setOwnerNodeId(int id) { m_ownerNodeId = id; }
Vector<LayoutRect>& currentLayoutRects() { return m_currentLayoutRects; }
+ void appendAnnotatedInvalidateRect(const FloatRect&, WebInvalidationDebugAnnotations);
+ void clearAnnotatedInvalidateRects();
+
private:
void appendLayoutRects(JSONObject*) const;
void appendCompositingReasons(JSONObject*) const;
@@ -65,6 +70,7 @@ private:
CompositingReasons m_compositingReasons;
int m_ownerNodeId;
Vector<LayoutRect> m_currentLayoutRects;
+ Vector<WebAnnotatedInvalidationRect> m_invalidations;
};
} // namespace blink
« no previous file with comments | « Source/platform/graphics/GraphicsLayer.cpp ('k') | Source/platform/graphics/GraphicsLayerDebugInfo.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698