summaryrefslogtreecommitdiff
path: root/animator/SkScript2.h
diff options
context:
space:
mode:
authorTorne (Richard Coles) <torne@google.com>2014-05-14 12:13:15 +0100
committerTorne (Richard Coles) <torne@google.com>2014-05-14 12:13:15 +0100
commit6b0bad3aba066dc8d7d47a5f6738ebf773ffc2e9 (patch)
treead988be7ad87928b7b98c44f2def4cce7d3330b6 /animator/SkScript2.h
parent27ab20dffff01006f5d20fdb2b3f4ea503d69114 (diff)
parentd60f7edf0fa7eb2eb7c99de486abfe61ad3dcd69 (diff)
downloadsrc-6b0bad3aba066dc8d7d47a5f6738ebf773ffc2e9.tar.gz
Merge from Chromium at DEPS revision 269336HEADmastermain
This commit was generated by merge_to_master.py. Change-Id: I9d3335dcb08fc53d18bec993b89047b409bd7eb1
Diffstat (limited to 'animator/SkScript2.h')
-rw-r--r--animator/SkScript2.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/animator/SkScript2.h b/animator/SkScript2.h
index 33e2af7f..d182e8c7 100644
--- a/animator/SkScript2.h
+++ b/animator/SkScript2.h
@@ -188,8 +188,9 @@ protected:
Branch() {
}
- Branch(Op op, int depth, unsigned offset) : fOffset(offset), fOpStackDepth(depth), fOperator(op),
- fPrimed(kIsNotPrimed), fDone(kIsNotDone) {
+ Branch(Op op, int depth, size_t offset)
+ : fOffset(SkToU16(offset)), fOpStackDepth(depth), fOperator(op)
+ , fPrimed(kIsNotPrimed), fDone(kIsNotDone) {
}
enum Primed {