1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gfx/skia/trunk/src/animator/SkOpArray.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,29 @@ 1.4 + 1.5 +/* 1.6 + * Copyright 2011 Google Inc. 1.7 + * 1.8 + * Use of this source code is governed by a BSD-style license that can be 1.9 + * found in the LICENSE file. 1.10 + */ 1.11 +#ifndef SkOpArray_DEFINED 1.12 +#define SkOpArray_DEFINED 1.13 + 1.14 +#include "SkOperand2.h" 1.15 +#include "SkTDArray_Experimental.h" 1.16 + 1.17 +typedef SkLongArray(SkOperand2) SkTDOperand2Array; 1.18 + 1.19 +class SkOpArray : public SkTDOperand2Array { 1.20 +public: 1.21 + SkOpArray(); 1.22 + SkOpArray(SkOperand2::OpType type); 1.23 + bool getIndex(int index, SkOperand2* operand); 1.24 + SkOperand2::OpType getType() { return fType; } 1.25 + void setType(SkOperand2::OpType type) { 1.26 + fType = type; 1.27 + } 1.28 +protected: 1.29 + SkOperand2::OpType fType; 1.30 +}; 1.31 + 1.32 +#endif // SkOpArray_DEFINED