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

Unified Diff: third_party/WebKit/Source/core/animation/InterpolationTypesMap.h

Issue 2555923003: Make InvalidatableInterpolation's InterpolationTypes decided at effect application time (Closed)
Patch Set: Extended InterpolationTypesMap lifetime scope to fix release crash Created 4 years 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/core/animation/InterpolationTypesMap.h
diff --git a/third_party/WebKit/Source/core/animation/PropertyInterpolationTypesMapping.h b/third_party/WebKit/Source/core/animation/InterpolationTypesMap.h
similarity index 57%
rename from third_party/WebKit/Source/core/animation/PropertyInterpolationTypesMapping.h
rename to third_party/WebKit/Source/core/animation/InterpolationTypesMap.h
index 57fc60556f7282c23b01315bff1e3711058b2313..a52a795c63edff2065c08bd7b31345324e389a96 100644
--- a/third_party/WebKit/Source/core/animation/PropertyInterpolationTypesMapping.h
+++ b/third_party/WebKit/Source/core/animation/InterpolationTypesMap.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef PropertyInterpolationTypesMapping_h
-#define PropertyInterpolationTypesMapping_h
+#ifndef InterpolationTypesMap_h
+#define InterpolationTypesMap_h
#include "wtf/Vector.h"
#include <memory>
@@ -15,11 +15,14 @@ class PropertyHandle;
using InterpolationTypes = Vector<std::unique_ptr<const InterpolationType>>;
-namespace PropertyInterpolationTypesMapping {
+class InterpolationTypesMap {
+ STACK_ALLOCATED();
-const InterpolationTypes& get(const PropertyHandle&);
+ public:
+ virtual const InterpolationTypes& get(const PropertyHandle&) const = 0;
+ virtual size_t version() const { return 0; }
};
} // namespace blink
-#endif // PropertyInterpolationTypesMapping_h
+#endif // InterpolationTypesMap_h

Powered by Google App Engine
This is Rietveld 408576698