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

Unified Diff: Source/platform/graphics/GraphicsLayer.cpp

Issue 498193003: Add |GraphicsLayerDebugInfo::getAnnotatedInvalidationRects| (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add missing files Created 6 years, 4 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: Source/platform/graphics/GraphicsLayer.cpp
diff --git a/Source/platform/graphics/GraphicsLayer.cpp b/Source/platform/graphics/GraphicsLayer.cpp
index 649ab82e2683b5da128a9af3a5715149d0b009f5..50fd3dec36957fae00c152938b82444616d67304 100644
--- a/Source/platform/graphics/GraphicsLayer.cpp
+++ b/Source/platform/graphics/GraphicsLayer.cpp
@@ -273,6 +273,7 @@ void GraphicsLayer::paintGraphicsLayerContents(GraphicsContext& context, const I
{
if (!m_client)
return;
+ m_debugInfo.clearAnnotatedInvalidateRects();
incrementPaintCount();
m_client->paintContents(this, context, m_paintingPhase, clip);
}
@@ -897,10 +898,11 @@ void GraphicsLayer::setNeedsDisplay()
}
}
-void GraphicsLayer::setNeedsDisplayInRect(const FloatRect& rect)
+void GraphicsLayer::setNeedsDisplayInRect(const FloatRect& rect, WebInvalidationDebugAnnotations annotations)
{
if (drawsContent()) {
m_layer->layer()->invalidateRect(rect);
+ m_debugInfo.appendAnnotatedInvalidateRect(rect, annotations);
enne (OOO) 2014/09/02 19:41:34 Is there a way to only do this when tracing or sho
kouhei (in TOK) 2014/09/03 22:53:47 I agree we should have a way to only enable these
dsinclair 2014/09/04 15:38:38 For tracing, you can check if the given trace cate
addRepaintRect(rect);
for (size_t i = 0; i < m_linkHighlights.size(); ++i)
m_linkHighlights[i]->invalidate();

Powered by Google App Engine
This is Rietveld 408576698