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

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

Issue 2798513002: Revert of Make GeometryMapper fully static (Closed)
Patch Set: 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
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/paint/GeometryMapperTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 fc935fafd2bbfed92d3ce7619ad7bc2609bdbbe5..a3ad96af48dbe6857fccb2ec32f6644f82ea2647 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.cpp
@@ -100,6 +100,7 @@
const PropertyTreeState& replayState) const {
TRACE_EVENT0("blink,benchmark", "PaintArtifact::replay");
DCHECK(RuntimeEnabledFeatures::slimmingPaintV2Enabled());
+ std::unique_ptr<GeometryMapper> geometryMapper = GeometryMapper::create();
Vector<const PaintChunk*> pointerPaintChunks;
pointerPaintChunks.reserveInitialCapacity(paintChunks().size());
@@ -109,7 +110,8 @@
pointerPaintChunks.push_back(&chunk);
scoped_refptr<cc::DisplayItemList> displayItemList =
PaintChunksToCcLayer::convert(pointerPaintChunks, replayState,
- gfx::Vector2dF(), getDisplayItemList());
+ gfx::Vector2dF(), getDisplayItemList(),
+ *geometryMapper);
canvas.drawDisplayItemList(displayItemList);
}
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/paint/GeometryMapperTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698