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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/GeometryMapperTransformCache.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/GeometryMapperTransformCache.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/GeometryMapperTransformCache.h b/third_party/WebKit/Source/platform/graphics/paint/GeometryMapperTransformCache.h
deleted file mode 100644
index e8f4a858ac4cc7863f462c7d135a46dd77bf437f..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/platform/graphics/paint/GeometryMapperTransformCache.h
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright 2017 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef GeometryMapperTransformCache_h
-#define GeometryMapperTransformCache_h
-
-#include "platform/PlatformExport.h"
-
-#include "platform/transforms/TransformationMatrix.h"
-#include "wtf/Vector.h"
-
-namespace blink {
-
-class TransformPaintPropertyNode;
-
-// A GeometryMapperTransformCache hangs off a TransformPaintPropertyNode. It
-// stores cached "transformed rects" (See GeometryMapper.h) from that node in
-// ancestor spaces.
-class PLATFORM_EXPORT GeometryMapperTransformCache {
- public:
- GeometryMapperTransformCache(){};
-
- // Returns the transformed rect (see GeometryMapper.h) of |this| in the
- // space of |ancestorTransform|, if there is one cached. Otherwise returns
- // null.
- const TransformationMatrix* getCachedTransform(
- const TransformPaintPropertyNode* ancestorTransform);
-
- // Stores the "transformed rect" of |this| in the space of |ancestors|,
- // into a local cache.
- void setCachedTransform(const TransformPaintPropertyNode* ancestorTransform,
- const TransformationMatrix& toAncestor);
-
- static void clearCache();
-
- private:
- struct TransformCacheEntry {
- const TransformPaintPropertyNode* ancestorNode;
- TransformationMatrix toAncestor;
- TransformCacheEntry(const TransformPaintPropertyNode* ancestorNodeArg,
- const TransformationMatrix& toAncestorArg)
- : ancestorNode(ancestorNodeArg), toAncestor(toAncestorArg) {}
- };
-
- void invalidateCacheIfNeeded();
-
- Vector<TransformCacheEntry> m_transformCache;
- unsigned m_cacheGeneration;
-
- DISALLOW_COPY_AND_ASSIGN(GeometryMapperTransformCache);
-};
-
-} // namespace blink
-
-#endif // GeometryMapperTransformCache_h

Powered by Google App Engine
This is Rietveld 408576698