Chromium Code Reviews| Index: third_party/WebKit/Source/core/frame/FrameView.cpp |
| diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp |
| index be13a4d4fb9c25b8547fb8e73f0d52791bf3819b..687b58d8451b0789bb81f5d439dc29cfbdc80004 100644 |
| --- a/third_party/WebKit/Source/core/frame/FrameView.cpp |
| +++ b/third_party/WebKit/Source/core/frame/FrameView.cpp |
| @@ -106,6 +106,7 @@ |
| #include "platform/graphics/GraphicsLayerDebugInfo.h" |
| #include "platform/graphics/paint/CullRect.h" |
| #include "platform/graphics/paint/PaintController.h" |
| +#include "platform/graphics/paint/ScopedPaintChunkProperties.h" |
| #include "platform/scheduler/CancellableTaskFactory.h" |
| #include "platform/scroll/ScrollAnimatorBase.h" |
| #include "platform/scroll/ScrollbarTheme.h" |
| @@ -2642,16 +2643,15 @@ void FrameView::synchronizedPaintRecursively(GraphicsLayer* graphicsLayer) |
| // Usually this is not needed because the PaintLayer will setup the chunk properties |
| // altogether. However in debug builds the GraphicsLayer could paint debug background before |
| // we ever reach the PaintLayer. |
| + Optional<ScopedPaintChunkProperties> scopedPaintChunkProperties; |
| if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) { |
| PaintChunkProperties properties; |
| properties.transform = m_rootTransform; |
| properties.clip = m_rootClip; |
| properties.effect = m_rootEffect; |
| - graphicsLayer->getPaintController().updateCurrentPaintChunkProperties(properties); |
| + scopedPaintChunkProperties.emplace(graphicsLayer->getPaintController(), *layoutView(), DisplayItem::DebugRedFill, properties); |
|
chrishtr
2016/07/20 00:10:38
Maybe remove in a followup.
Xianzhu
2016/07/20 00:11:32
Will upload a patch soon.
|
| } |
| graphicsLayer->paint(nullptr); |
| - if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) |
| - graphicsLayer->getPaintController().updateCurrentPaintChunkProperties(PaintChunkProperties()); |
| } |
| if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled()) { |