summaryrefslogtreecommitdiffstats
path: root/cc/animation/transform_operations.h
diff options
context:
space:
mode:
authorloyso <loyso@chromium.org>2016-02-17 20:00:55 -0800
committerCommit bot <commit-bot@chromium.org>2016-02-18 04:02:03 +0000
commit3479a2cd4a2926b56ea8091e6182f1a32e9bbeae (patch)
treeaced65d391f490ea8abe4bcc4839728e503a17ae /cc/animation/transform_operations.h
parent4d5765f4066be1198558f6c07ebd5f53ea74be8e (diff)
downloadchromium_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.h8
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,