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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp

Issue 2655383002: Use GeometryMapper in PaintLayerClipper. (Closed)
Patch Set: Created 3 years, 11 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/core/paint/PaintLayerClipper.h ('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/core/paint/PaintLayerClipper.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp b/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp
index b8b71d4fb8e797175369a82539f15252e8294057..70665a933389112afa9130c8da0145d0c8c32e0d 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp
@@ -114,9 +114,8 @@ static void applyClipRects(const ClipRectsContext& context,
}
PaintLayerClipper::PaintLayerClipper(const PaintLayer& layer,
- bool useGeometryMapper)
- : m_layer(layer),
- m_geometryMapper(useGeometryMapper ? new GeometryMapper : nullptr) {}
+ GeometryMapper* geometryMapper)
+ : m_layer(layer), m_geometryMapper(geometryMapper) {}
ClipRects* PaintLayerClipper::clipRectsIfCached(
const ClipRectsContext& context) const {
@@ -178,9 +177,6 @@ void PaintLayerClipper::clearCache(ClipRectsCacheSlot cacheSlot) {
m_layer.clearClipRectsCache();
else if (ClipRectsCache* cache = m_layer.clipRectsCache())
cache->clear(cacheSlot);
-
- if (m_geometryMapper)
- m_geometryMapper.reset(new GeometryMapper);
}
void PaintLayerClipper::clearClipRectsIncludingDescendants() {
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayerClipper.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698