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

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2116693002: PaintChunk::id (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@CommitOnTheWay
Patch Set: - Created 4 years, 5 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: 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 9e64a983ed273135f768d12e98d0c4a98780eba9..a9efc820b8acd1e4c2dc25b83c67887fb731db55 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -105,6 +105,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);
}
graphicsLayer->paint(nullptr);
- if (RuntimeEnabledFeatures::slimmingPaintV2Enabled())
- graphicsLayer->getPaintController().updateCurrentPaintChunkProperties(PaintChunkProperties());
}
if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {

Powered by Google App Engine
This is Rietveld 408576698