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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.h

Issue 2671853003: [SPInvalidation] Use GeometryMapper in PaintLayerClipper for paint. (Closed)
Patch Set: Merge branch 'master' into paintlayerclipper Created 3 years, 10 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/GeometryMapper.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.h b/third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.h
index 85f619141912be601892c52362b824a816f8f0c0..6ed23d3100e503579cf54c69b54a4915df511514 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.h
@@ -53,7 +53,10 @@ struct PrecomputedDataForAncestor {
// TODO(chrishtr): take effect tree into account.
class PLATFORM_EXPORT GeometryMapper {
public:
- GeometryMapper() {}
+ static std::unique_ptr<GeometryMapper> create() {
+ return WTF::wrapUnique(new GeometryMapper());
+ }
+
// The runtime of m calls among localToAncestorVisualRect, localToAncestorRect
// or ancestorToLocalRect with the same |ancestorState| parameter is
// guaranteed to be O(n + m), where n is the number of transform and clip
@@ -143,6 +146,9 @@ class PLATFORM_EXPORT GeometryMapper {
void clearCache();
+ protected:
+ GeometryMapper() {}
+
private:
// The internal methods do the same things as their public counterparts, but
// take an extra |success| parameter which indicates if the function is

Powered by Google App Engine
This is Rietveld 408576698