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

Unified Diff: Source/core/rendering/compositing/CompositedLayerMapping.cpp

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/core/rendering/compositing/CompositedLayerMapping.h ('k') | Source/platform/blink_platform.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/compositing/CompositedLayerMapping.cpp
diff --git a/Source/core/rendering/compositing/CompositedLayerMapping.cpp b/Source/core/rendering/compositing/CompositedLayerMapping.cpp
index 41ad27e7251ca8c39b3fbfb475e517bf1b6bd7c2..70fbf7f15bc36f1a3d104c79aefae6f7205fd51e 100644
--- a/Source/core/rendering/compositing/CompositedLayerMapping.cpp
+++ b/Source/core/rendering/compositing/CompositedLayerMapping.cpp
@@ -2028,21 +2028,23 @@ struct SetContentsNeedsDisplayInRectFunctor {
if (layer->drawsContent()) {
IntRect layerDirtyRect = r;
layerDirtyRect.move(-layer->offsetFromRenderer());
- layer->setNeedsDisplayInRect(layerDirtyRect);
+ layer->setNeedsDisplayInRect(layerDirtyRect, annotations);
}
}
IntRect r;
+ WebInvalidationDebugAnnotations annotations;
};
// r is in the coordinate space of the layer's render object
-void CompositedLayerMapping::setContentsNeedDisplayInRect(const LayoutRect& r)
+void CompositedLayerMapping::setContentsNeedDisplayInRect(const LayoutRect& r, WebInvalidationDebugAnnotations annotations)
{
// FIXME: need to split out paint invalidations for the background.
ASSERT(!paintsIntoCompositedAncestor());
SetContentsNeedsDisplayInRectFunctor functor = {
- pixelSnappedIntRect(r.location() + m_owningLayer.subpixelAccumulation(), r.size())
+ pixelSnappedIntRect(r.location() + m_owningLayer.subpixelAccumulation(), r.size()),
+ annotations
};
ApplyToGraphicsLayers(this, functor, ApplyToContentLayers);
}
« no previous file with comments | « Source/core/rendering/compositing/CompositedLayerMapping.h ('k') | Source/platform/blink_platform.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698