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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsLayer.h

Issue 2383323002: [SPv2] Introduce an option to output the GraphicsLayer tree as a flat layer list. (Closed)
Patch Set: none Created 4 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
Index: third_party/WebKit/Source/platform/graphics/GraphicsLayer.h
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h
index 8739df7ad45b0bbc2f549a96bcd5b4ef83bae276..fc3060fe614c6de663cc9cdd3d6cdd97418fb33e 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h
@@ -290,6 +290,9 @@ private:
typedef HashMap<int, int> RenderingContextMap;
std::unique_ptr<JSONObject> layerTreeAsJSONInternal(LayerTreeFlags, RenderingContextMap&) const;
+ // Outputs the layer tree rooted at |this| as a JSON array, in paint order.
+ void layersAsJSONArray(LayerTreeFlags, RenderingContextMap&, JSONArray*) const;
+ std::unique_ptr<JSONObject> layerAsJSONInternal(LayerTreeFlags, RenderingContextMap&) const;
sk_sp<SkPicture> capturePicture();
void checkPaintUnderInvalidations(const SkPicture&);

Powered by Google App Engine
This is Rietveld 408576698