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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.h

Issue 2565073002: Implement the algorithm to test merging and overlap in PaintArtifactCompositor. (Closed)
Patch Set: none Created 4 years 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: third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.h b/third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.h
index 24ea40b23b221e5dce088fd9b25d03cb2bd3b2d8..e3f726f812515c982c086ba5b16f418d546be377 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.h
@@ -13,6 +13,7 @@
namespace blink {
+class JSONArray;
struct PaintChunk;
// kDisplayItemAlignment must be a multiple of alignof(derived display item) for
@@ -68,6 +69,11 @@ class PLATFORM_EXPORT DisplayItemList
Range<iterator> itemsInPaintChunk(const PaintChunk&);
Range<const_iterator> itemsInPaintChunk(const PaintChunk&) const;
+ std::unique_ptr<JSONArray> subsequenceAsJSON(size_t beginIndex,
+ size_t endIndex,
+ bool showPictures,
+ bool skipNonDrawings) const;
+
private:
Vector<IntRect> m_visualRects;
};

Powered by Google App Engine
This is Rietveld 408576698