diff options
Diffstat (limited to 'cc/animation/transform_operations.h')
-rw-r--r-- | cc/animation/transform_operations.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cc/animation/transform_operations.h b/cc/animation/transform_operations.h index d173ace..b97ba36 100644 --- a/cc/animation/transform_operations.h +++ b/cc/animation/transform_operations.h @@ -7,6 +7,7 @@ #include <vector> +#include "base/logging.h" #include "base/macros.h" #include "base/memory/scoped_ptr.h" #include "cc/animation/transform_operation.h" @@ -90,6 +91,13 @@ class CC_EXPORT TransformOperations { void AppendIdentity(); bool IsIdentity() const; + size_t size() const { return operations_.size(); } + + const TransformOperation& at(size_t index) const { + DCHECK_LT(index, size()); + return operations_[index]; + } + private: bool BlendInternal(const TransformOperations& from, SkMScalar progress, |