/external/chromium_org/third_party/skia/src/animator/ |
SkOpArray.h | 11 #include "SkOperand2.h" 14 typedef SkLongArray(SkOperand2) SkTDOperand2Array; 19 SkOpArray(SkOperand2::OpType type); 20 bool getIndex(int index, SkOperand2* operand); 21 SkOperand2::OpType getType() { return fType; } 22 void setType(SkOperand2::OpType type) { 26 SkOperand2::OpType fType;
|
SkOperand2.h | 16 union SkOperand2 { 42 SkOperand2 fOperand; 43 SkOperand2::OpType fType : 8; 46 SkOpArray* getArray() { SkASSERT(fType == SkOperand2::kArray); return fOperand.fArray; } 47 void* getObject() { SkASSERT(fType == SkOperand2::kObject); return fOperand.fObject; } 48 int32_t getS32() { SkASSERT(fType == SkOperand2::kS32); return fOperand.fS32; } 49 SkScalar getScalar() { SkASSERT(fType == SkOperand2::kScalar); return fOperand.fScalar; } 50 SkString* getString() { SkASSERT(fType == SkOperand2::kString); return fOperand.fString; }
|
SkOpArray.cpp | 10 SkOpArray::SkOpArray() : fType(SkOperand2::kNoType) { 13 SkOpArray::SkOpArray(SkOperand2::OpType type) : fType(type) { 16 bool SkOpArray::getIndex(int index, SkOperand2* operand) {
|
SkScriptCallBack.h | 11 #include "SkOperand2.h" 28 virtual SkOperand2::OpType getReturnType(size_t ref, SkOperand2*) { 29 return SkOperand2::kS32; } 35 virtual bool convert(SkOperand2::OpType type, SkOperand2* operand) = 0; 40 virtual void getParamTypes(SkIntArray(SkOperand2::OpType)* types) = 0; 42 virtual bool invoke(size_t ref, SkOpArray* params, SkOperand2* value) = 0; 49 virtual bool invoke(size_t ref, void* object, SkOperand2* value) = 0; 55 virtual void getParamTypes(SkIntArray(SkOperand2::OpType)* types) = 0 [all...] |
SkScriptTokenizer.cpp | 19 { SkOperand2::kNoType, SkOperand2::kNoType, kNoBias, kResultIsNotBoolean }, 20 { SkOperand2::OpType(SkOperand2::kS32 | SkOperand2::kScalar | SkOperand2::kString), 21 SkOperand2::OpType(SkOperand2::kS32 | SkOperand2::kScalar | SkOperand2::kString), kTowardsString, kResultIsNotBoolean }, // kAd [all...] |
SkAnimatorScript2.cpp | 57 virtual bool convert(SkOperand2::OpType type, SkOperand2* operand) { 60 case SkOperand2::kArray: { 64 case SkOperand2::kS32: { 69 case SkOperand2::kScalar: { 74 case SkOperand2::kString: { 78 case SkOperand2::kObject: 89 virtual SkOperand2::OpType getReturnType(int index) { 90 return SkOperand2::kObject; 110 virtual bool getConstValue(const char* name, int len, SkOperand2* value) [all...] |
SkAnimatorScript2.h | 30 SkDisplayable* displayable, SkOperand2* value); 35 static SkDisplayTypes ToDisplayType(SkOperand2::OpType type); 36 static SkOperand2::OpType ToOpType(SkDisplayTypes type);
|
SkScriptRuntime.h | 11 #include "SkOperand2.h" 35 bool getResult(SkOperand2* result); 43 SkTDStack<SkOperand2> fRunStack;
|
SkScript2.h | 11 #include "SkOperand2.h" 39 SkScriptEngine2(SkOperand2::OpType returnType); 41 bool convertTo(SkOperand2::OpType , SkScriptValue2* ); 45 SkOperand2::OpType getReturnType() { return fReturnType; } 53 static bool ConvertTo(SkScriptEngine2* , SkOperand2::OpType toType, SkScriptValue2* value); 218 void addTokenConst(SkScriptValue2* , AddTokenRegister , SkOperand2::OpType , TypeOp ); 225 const SkOperand2::OpType* paramTypes, int paramTypeCount); 226 void convertToString(SkOperand2* operand, SkOperand2::OpType type) { 230 convertTo(SkOperand2::kString, &scriptValue) [all...] |
SkScriptDecompile.cpp | 90 #define OperandName(op) {SkOperand2::op, #op } 93 SkOperand2::OpType fType; 115 SkOperand2::OpType type = SkOperand2::kNoType; 118 type = (SkOperand2::OpType) (1 << index); 172 SkOperand2::OpType type; 182 type = (SkOperand2::OpType) (type & ~(1 << index));
|
SkDisplayable.h | 27 union SkOperand2; // compiled scripting experiment 58 SkOpArray* params , SkDisplayTypes , SkOperand2* ); // compiled scripting experiment 67 virtual bool getProperty2(int index, SkOperand2* value) const; // compiled scripting experiment
|
SkScriptRuntime.cpp | 63 SkOperand2 operand[2]; // 1=accumulator and 2=operand 72 operand[0].fArray = new SkOpArray(SkOperand2::kNoType /*fReturnType*/); 151 SkOperand2::OpType type; 161 if (callBackUnbox->convert(SkOperand2::kObject, &operand[0]) == false) 324 bool SkScriptRuntime::getResult(SkOperand2* result) {
|
SkDisplayable.cpp | 414 SkOpArray* params, SkDisplayTypes, SkOperand2* ) { 467 bool SkDisplayable::getProperty2(int index, SkOperand2* value) const {
|
/external/skia/src/animator/ |
SkOpArray.h | 11 #include "SkOperand2.h" 14 typedef SkLongArray(SkOperand2) SkTDOperand2Array; 19 SkOpArray(SkOperand2::OpType type); 20 bool getIndex(int index, SkOperand2* operand); 21 SkOperand2::OpType getType() { return fType; } 22 void setType(SkOperand2::OpType type) { 26 SkOperand2::OpType fType;
|
SkOperand2.h | 16 union SkOperand2 { 42 SkOperand2 fOperand; 43 SkOperand2::OpType fType : 8; 46 SkOpArray* getArray() { SkASSERT(fType == SkOperand2::kArray); return fOperand.fArray; } 47 void* getObject() { SkASSERT(fType == SkOperand2::kObject); return fOperand.fObject; } 48 int32_t getS32() { SkASSERT(fType == SkOperand2::kS32); return fOperand.fS32; } 49 SkScalar getScalar() { SkASSERT(fType == SkOperand2::kScalar); return fOperand.fScalar; } 50 SkString* getString() { SkASSERT(fType == SkOperand2::kString); return fOperand.fString; }
|
SkOpArray.cpp | 10 SkOpArray::SkOpArray() : fType(SkOperand2::kNoType) { 13 SkOpArray::SkOpArray(SkOperand2::OpType type) : fType(type) { 16 bool SkOpArray::getIndex(int index, SkOperand2* operand) {
|
SkScriptCallBack.h | 11 #include "SkOperand2.h" 28 virtual SkOperand2::OpType getReturnType(size_t ref, SkOperand2*) { 29 return SkOperand2::kS32; } 35 virtual bool convert(SkOperand2::OpType type, SkOperand2* operand) = 0; 40 virtual void getParamTypes(SkIntArray(SkOperand2::OpType)* types) = 0; 42 virtual bool invoke(size_t ref, SkOpArray* params, SkOperand2* value) = 0; 49 virtual bool invoke(size_t ref, void* object, SkOperand2* value) = 0; 55 virtual void getParamTypes(SkIntArray(SkOperand2::OpType)* types) = 0 [all...] |
SkScriptTokenizer.cpp | 19 { SkOperand2::kNoType, SkOperand2::kNoType, kNoBias, kResultIsNotBoolean }, 20 { SkOperand2::OpType(SkOperand2::kS32 | SkOperand2::kScalar | SkOperand2::kString), 21 SkOperand2::OpType(SkOperand2::kS32 | SkOperand2::kScalar | SkOperand2::kString), kTowardsString, kResultIsNotBoolean }, // kAd [all...] |
SkAnimatorScript2.cpp | 57 virtual bool convert(SkOperand2::OpType type, SkOperand2* operand) { 60 case SkOperand2::kArray: { 64 case SkOperand2::kS32: { 69 case SkOperand2::kScalar: { 74 case SkOperand2::kString: { 78 case SkOperand2::kObject: 89 virtual SkOperand2::OpType getReturnType(int index) { 90 return SkOperand2::kObject; 110 virtual bool getConstValue(const char* name, int len, SkOperand2* value) [all...] |
SkAnimatorScript2.h | 30 SkDisplayable* displayable, SkOperand2* value); 35 static SkDisplayTypes ToDisplayType(SkOperand2::OpType type); 36 static SkOperand2::OpType ToOpType(SkDisplayTypes type);
|
SkScriptRuntime.h | 11 #include "SkOperand2.h" 35 bool getResult(SkOperand2* result); 43 SkTDStack<SkOperand2> fRunStack;
|
SkScript2.h | 11 #include "SkOperand2.h" 39 SkScriptEngine2(SkOperand2::OpType returnType); 41 bool convertTo(SkOperand2::OpType , SkScriptValue2* ); 45 SkOperand2::OpType getReturnType() { return fReturnType; } 53 static bool ConvertTo(SkScriptEngine2* , SkOperand2::OpType toType, SkScriptValue2* value); 218 void addTokenConst(SkScriptValue2* , AddTokenRegister , SkOperand2::OpType , TypeOp ); 225 const SkOperand2::OpType* paramTypes, int paramTypeCount); 226 void convertToString(SkOperand2* operand, SkOperand2::OpType type) { 230 convertTo(SkOperand2::kString, &scriptValue) [all...] |
SkScriptDecompile.cpp | 90 #define OperandName(op) {SkOperand2::op, #op } 93 SkOperand2::OpType fType; 115 SkOperand2::OpType type = SkOperand2::kNoType; 118 type = (SkOperand2::OpType) (1 << index); 172 SkOperand2::OpType type; 182 type = (SkOperand2::OpType) (type & ~(1 << index));
|
SkDisplayable.h | 27 union SkOperand2; // compiled scripting experiment 58 SkOpArray* params , SkDisplayTypes , SkOperand2* ); // compiled scripting experiment 67 virtual bool getProperty2(int index, SkOperand2* value) const; // compiled scripting experiment
|
SkScriptRuntime.cpp | 63 SkOperand2 operand[2]; // 1=accumulator and 2=operand 72 operand[0].fArray = new SkOpArray(SkOperand2::kNoType /*fReturnType*/); 151 SkOperand2::OpType type; 161 if (callBackUnbox->convert(SkOperand2::kObject, &operand[0]) == false) 324 bool SkScriptRuntime::getResult(SkOperand2* result) {
|