Chromium Code Reviews| 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(); |