diff options
Diffstat (limited to 'libsgl/animator/SkOpArray.cpp')
-rw-r--r-- | libsgl/animator/SkOpArray.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libsgl/animator/SkOpArray.cpp b/libsgl/animator/SkOpArray.cpp new file mode 100644 index 0000000..eb3fcec --- /dev/null +++ b/libsgl/animator/SkOpArray.cpp @@ -0,0 +1,16 @@ +#include "SkOpArray.h" + +SkOpArray::SkOpArray() : fType(SkOperand2::kNoType) { +} + +SkOpArray::SkOpArray(SkOperand2::OpType type) : fType(type) { +} + +bool SkOpArray::getIndex(int index, SkOperand2* operand) { + if (index >= count()) { + SkASSERT(0); + return false; + } + *operand = begin()[index]; + return true; +} |