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

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

Issue 2738113003: Revert of Improve performance of GeometryMapper cache. (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/ClipPaintPropertyNode.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/ClipPaintPropertyNode.h b/third_party/WebKit/Source/platform/graphics/paint/ClipPaintPropertyNode.h
index 0548bfb1df144f46e28b64617a3e231d970f0dae..7749aace88eaec366958ae0a6b16465392c13f75 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/ClipPaintPropertyNode.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/ClipPaintPropertyNode.h
@@ -7,7 +7,6 @@
#include "platform/PlatformExport.h"
#include "platform/geometry/FloatRoundedRect.h"
-#include "platform/graphics/paint/GeometryMapperClipCache.h"
#include "platform/graphics/paint/TransformPaintPropertyNode.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
@@ -17,8 +16,6 @@
#include <iosfwd>
namespace blink {
-
-class GeometryMapperClipCache;
// A clip rect created by a css property such as "overflow" or "clip".
// Along with a reference to the transform space the clip rect is based on,
@@ -100,26 +97,10 @@
m_clipRect(clipRect),
m_directCompositingReasons(directCompositingReasons) {}
- // For access to getClipCache();
- friend class GeometryMapper;
- friend class GeometryMapperTest;
-
- GeometryMapperClipCache& getClipCache() const {
- return const_cast<ClipPaintPropertyNode*>(this)->getClipCache();
- }
-
- GeometryMapperClipCache& getClipCache() {
- if (!m_geometryMapperClipCache)
- m_geometryMapperClipCache.reset(new GeometryMapperClipCache());
- return *m_geometryMapperClipCache.get();
- }
-
RefPtr<const ClipPaintPropertyNode> m_parent;
RefPtr<const TransformPaintPropertyNode> m_localTransformSpace;
FloatRoundedRect m_clipRect;
CompositingReasons m_directCompositingReasons;
-
- std::unique_ptr<GeometryMapperClipCache> m_geometryMapperClipCache;
};
// Redeclared here to avoid ODR issues.
« no previous file with comments | « third_party/WebKit/Source/platform/BUILD.gn ('k') | third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698