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