diff options
author | loyso <loyso@chromium.org> | 2016-02-17 20:00:55 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-18 04:02:03 +0000 |
commit | 3479a2cd4a2926b56ea8091e6182f1a32e9bbeae (patch) | |
tree | aced65d391f490ea8abe4bcc4839728e503a17ae /cc/animation/transform_operations.h | |
parent | 4d5765f4066be1198558f6c07ebd5f53ea74be8e (diff) | |
download | chromium_src-3479a2cd4a2926b56ea8091e6182f1a32e9bbeae.zip chromium_src-3479a2cd4a2926b56ea8091e6182f1a32e9bbeae.tar.gz chromium_src-3479a2cd4a2926b56ea8091e6182f1a32e9bbeae.tar.bz2 |
Blink Compositor: Erase virtuals on Transform and Filter operations.
BUG=577016
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Review URL: https://codereview.chromium.org/1698213002
Cr-Commit-Position: refs/heads/master@{#376085}
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, |