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

Unified Diff: third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.h

Issue 2577123002: Add optional debugging output of what paint chunks go into what layers. (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/compositing/PaintArtifactCompositor.h
diff --git a/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.h b/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.h
index fef6b35ba364bfc6666d0c2b16f696a2527e2cc6..c9eae71af5ea769a67f70b1894169b66191d4bc1 100644
--- a/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.h
+++ b/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.h
@@ -48,9 +48,13 @@ class PLATFORM_EXPORT PaintArtifactCompositor {
}
// Updates the layer tree to match the provided paint artifact.
+ // If |storeDebugInfo| is true, stores detailed debugging information in
+ // the layers that will be output as part of a call to layersAsJSON,
+ // if LayerTreeIncludesDebugInfo is specified.
wkorman 2016/12/15 21:36:05 This read to me as if the debug info will only be
chrishtr 2016/12/15 22:35:11 Done.
void update(
const PaintArtifact&,
- RasterInvalidationTrackingMap<const PaintChunk>* paintChunkInvalidations);
+ RasterInvalidationTrackingMap<const PaintChunk>* paintChunkInvalidations,
+ bool storeDebugInfo);
// The root layer of the tree managed by this object.
cc::Layer* rootLayer() const { return m_rootLayer.get(); }
@@ -93,7 +97,8 @@ class PLATFORM_EXPORT PaintArtifactCompositor {
const PaintChunk&,
gfx::Vector2dF& layerOffset,
Vector<std::unique_ptr<ContentLayerClientImpl>>& newContentLayerClients,
- RasterInvalidationTracking*);
+ RasterInvalidationTracking*,
+ bool storeDebugInfo);
// Finds a client among the current vector of clients that matches the paint
// chunk's id, or otherwise allocates a new one.

Powered by Google App Engine
This is Rietveld 408576698