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

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

Issue 2793993003: 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
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 a3ad96af48dbe6857fccb2ec32f6644f82ea2647..fc935fafd2bbfed92d3ce7619ad7bc2609bdbbe5 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.cpp
@@ -100,7 +100,6 @@ void PaintArtifact::replay(const FloatRect& bounds,
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());
@@ -110,8 +109,7 @@ void PaintArtifact::replay(const FloatRect& bounds,
pointerPaintChunks.push_back(&chunk);
scoped_refptr<cc::DisplayItemList> displayItemList =
PaintChunksToCcLayer::convert(pointerPaintChunks, replayState,
- gfx::Vector2dF(), getDisplayItemList(),
- *geometryMapper);
+ gfx::Vector2dF(), getDisplayItemList());
canvas.drawDisplayItemList(displayItemList);
}

Powered by Google App Engine
This is Rietveld 408576698