Lines Matching refs:SkOperand2
57 virtual bool convert(SkOperand2::OpType type, SkOperand2* operand) { in convert()
60 case SkOperand2::kArray: { in convert()
64 case SkOperand2::kS32: { in convert()
69 case SkOperand2::kScalar: { in convert()
74 case SkOperand2::kString: { in convert()
78 case SkOperand2::kObject: in convert()
89 virtual SkOperand2::OpType getReturnType(int index) { in getReturnType()
90 return SkOperand2::kObject; in getReturnType()
110 virtual bool getConstValue(const char* name, int len, SkOperand2* value) { in getConstValue()
133 virtual void getParamTypes(SkIntArray(SkOperand2::OpType)* types) { in getParamTypes()
135 SkOperand2::OpType* type = types->begin(); in getParamTypes()
136 type[0] = SkOperand2::kString; in getParamTypes()
139 virtual bool invoke(size_t index, SkOpArray* params, SkOperand2* answer) { in invoke()
142 SkOperand2* op = params->begin(); in invoke()
179 virtual bool getResult(size_t ref, SkOperand2* answer) { in getResult()
184 virtual SkOperand2::OpType getReturnType(size_t index) { in getReturnType()
185 return index == 0 ? SkOperand2::kString : SkOperand2::kObject; in getReturnType()
203 ref->fType = SkOperand2::kObject; in getMemberReference()
215 bool invoke(size_t ref, void* object, SkOperand2* value) { in invoke()
245 virtual void getParamTypes(SkIntArray(SkOperand2::OpType)* types) { in getParamTypes()
247 SkOperand2::OpType* type = types->begin(); in getParamTypes()
248 type[0] = type[1] = type[2] = SkOperand2::kS32; in getParamTypes()
251 bool invoke(size_t ref, void* object, SkOpArray* params, SkOperand2* value) in invoke()
266 virtual bool getConstValue(const char* name, int len, SkOperand2* value) { in getConstValue()
281 virtual void getParamTypes(SkIntArray(SkOperand2::OpType)* types) { in getParamTypes()
283 SkOperand2::OpType* type = types->begin(); in getParamTypes()
284 type[0] = type[1] = type[2] = SkOperand2::kS32; in getParamTypes()
287 virtual bool invoke(size_t index, SkOpArray* params, SkOperand2* answer) { in invoke()
306 virtual bool convert(SkOperand2::OpType type, SkOperand2* operand) { in convert()
307 SkASSERT(type == SkOperand2::kObject); in convert()
315 … memcpy(operand->fArray->begin(), boxedValue->values.begin(), count * sizeof(SkOperand2)); in convert()
344 virtual SkOperand2::OpType getReturnType(int /*index*/, SkOperand2* operand) { in getReturnType()
348 return SkOperand2::kArray; in getReturnType()
350 return SkOperand2::kS32; in getReturnType()
352 return SkOperand2::kScalar; in getReturnType()
355 return SkOperand2::kString; in getReturnType()
399 SkDisplayable* displayable, SkOperand2* value) { in evalMemberCommon()
439 memcpy(array->begin(), displayableArray->begin(), count * sizeof(SkOperand2)); in evalMemberCommon()
455 SkDisplayTypes SkAnimatorScript2::ToDisplayType(SkOperand2::OpType type) { in ToDisplayType()
458 case SkOperand2::kNoType: in ToDisplayType()
460 case SkOperand2::kS32: in ToDisplayType()
462 case SkOperand2::kScalar: in ToDisplayType()
464 case SkOperand2::kString: in ToDisplayType()
466 case SkOperand2::kArray: in ToDisplayType()
468 case SkOperand2::kObject: in ToDisplayType()
476 SkOperand2::OpType SkAnimatorScript2::ToOpType(SkDisplayTypes type) { in ToOpType()
478 return SkOperand2::kObject; in ToOpType()
480 return SkOperand2::kS32; in ToOpType()
485 return SkOperand2::kS32; in ToOpType()
489 return SkOperand2::kScalar; in ToOpType()
493 return SkOperand2::kString; in ToOpType()
495 return SkOperand2::kArray; in ToOpType()
497 return SkOperand2::kNoType; in ToOpType()
500 return SkOperand2::kNoType; in ToOpType()
605 case SkOperand2::kS32: in UnitTest()
608 case SkOperand2::kScalar: in UnitTest()
612 case SkOperand2::kString: in UnitTest()