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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.cpp

Issue 2784373004: [SPv2] Replay DragImages into PropertyTreeState of the enclosing stacking context (Closed)
Patch Set: none Created 3 years, 9 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/platform/graphics/paint/PaintArtifact.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.cpp b/third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.cpp
index 920c745fe37b88d3cf555f6c12cf247802003884..1190f93debb49d43557e3ab20de59c1eac4728dc 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.cpp
@@ -85,7 +85,8 @@ size_t PaintArtifact::approximateUnsharedMemoryUsage() const {
}
void PaintArtifact::replay(const FloatRect& bounds,
- GraphicsContext& graphicsContext) const {
+ GraphicsContext& graphicsContext,
+ const PropertyTreeState& replayState) const {
TRACE_EVENT0("blink,benchmark", "PaintArtifact::replay");
if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
for (const DisplayItem& displayItem : m_displayItemList)
@@ -100,9 +101,9 @@ void PaintArtifact::replay(const FloatRect& bounds,
for (const auto& chunk : paintChunks())
pointerPaintChunks.push_back(&chunk);
scoped_refptr<cc::DisplayItemList> displayItemList =
- PaintChunksToCcLayer::convert(
- pointerPaintChunks, PropertyTreeState::root(), gfx::Vector2dF(),
- getDisplayItemList(), *geometryMapper);
+ PaintChunksToCcLayer::convert(pointerPaintChunks, replayState,
+ gfx::Vector2dF(), getDisplayItemList(),
+ *geometryMapper);
graphicsContext.canvas()->drawDisplayItemList(displayItemList);
}
}

Powered by Google App Engine
This is Rietveld 408576698