| Index: third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
|
| index 7a664ab995e3e06df61903f0e74e0384a62d91f5..29c0e9686a3589fa21c950c916ac9f0f831b39ec 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
|
| @@ -292,6 +292,13 @@ void GraphicsLayer::setOffsetDoubleFromLayoutObject(const DoubleSize& offset, Sh
|
| setNeedsDisplay();
|
| }
|
|
|
| +IntRect GraphicsLayer::interestRect()
|
| +{
|
| + if (!RuntimeEnabledFeatures::slimmingPaintSynchronizedPaintingEnabled())
|
| + m_previousInterestRect = m_client->computeInterestRect(this, m_previousInterestRect);
|
| + return m_previousInterestRect;
|
| +}
|
| +
|
| void GraphicsLayer::paint(GraphicsContext& context, const IntRect* interestRect)
|
| {
|
| ASSERT(interestRect || RuntimeEnabledFeatures::slimmingPaintSynchronizedPaintingEnabled());
|
| @@ -324,9 +331,9 @@ void GraphicsLayer::paint(GraphicsContext& context, const IntRect* interestRect)
|
| }
|
| }
|
|
|
| + m_previousInterestRect = *interestRect;
|
| m_client->paintContents(this, context, m_paintingPhase, *interestRect);
|
| notifyFirstPaintToClient();
|
| - m_previousInterestRect = *interestRect;
|
| }
|
|
|
| void GraphicsLayer::notifyFirstPaintToClient()
|
|
|