Home
last modified time | relevance | path

Searched refs:SkOperand2 (Results 1 – 15 of 15) sorted by relevance

/external/skia/src/animator/
DSkScriptTokenizer.cpp19 { SkOperand2::kNoType, SkOperand2::kNoType, kNoBias, kResultIsNotBoolean },
20 { SkOperand2::OpType(SkOperand2::kS32 | SkOperand2::kScalar | SkOperand2::kString),
21SkOperand2::OpType(SkOperand2::kS32 | SkOperand2::kScalar | SkOperand2::kString), kTowardsString, …
22 { SkOperand2::kS32, SkOperand2::kS32, kNoBias, kResultIsNotBoolean }, // kBitAnd
23 { SkOperand2::kNoType, SkOperand2::kS32, kNoBias, kResultIsNotBoolean }, // kBitNot
24 { SkOperand2::kS32, SkOperand2::kS32, kNoBias, kResultIsNotBoolean }, // kBitOr
25 { SkOperand2::OpType(SkOperand2::kS32 | SkOperand2::kScalar),
26SkOperand2::OpType(SkOperand2::kS32 | SkOperand2::kScalar), kNoBias, kResultIsNotBoolean }, // kDi…
27 { SkOperand2::OpType(SkOperand2::kS32 | SkOperand2::kScalar | SkOperand2::kString),
28SkOperand2::OpType(SkOperand2::kS32 | SkOperand2::kScalar |SkOperand2:: kString), kTowardsNumber,
[all …]
DSkAnimatorScript2.cpp57 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()
[all …]
DSkScriptCallBack.h28 virtual SkOperand2::OpType getReturnType(size_t ref, SkOperand2*) { in getReturnType() argument
29 return SkOperand2::kS32; } in getReturnType()
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;
57 virtual bool invoke(size_t ref, void* object, SkOpArray* params, SkOperand2* value) = 0;
62 virtual bool getConstValue(const char* name, size_t len, SkOperand2* value) { return false; } in getConstValue()
63 virtual bool getResult(size_t ref, SkOperand2* answer) { return false; } in getResult()
DSkOperand2.h16 union SkOperand2 { union
42 SkOperand2 fOperand;
43 SkOperand2::OpType fType : 8;
46 SkOpArray* getArray() { SkASSERT(fType == SkOperand2::kArray); return fOperand.fArray; } in getArray()
47 void* getObject() { SkASSERT(fType == SkOperand2::kObject); return fOperand.fObject; } in getObject()
48 int32_t getS32() { SkASSERT(fType == SkOperand2::kS32); return fOperand.fS32; } in getS32()
49 SkScalar getScalar() { SkASSERT(fType == SkOperand2::kScalar); return fOperand.fScalar; } in getScalar()
50 SkString* getString() { SkASSERT(fType == SkOperand2::kString); return fOperand.fString; } in getString()
DSkScript2.h40 SkScriptEngine2(SkOperand2::OpType returnType);
42 bool convertTo(SkOperand2::OpType , SkScriptValue2* );
46 SkOperand2::OpType getReturnType() { return fReturnType; } in getReturnType()
54 static bool ConvertTo(SkScriptEngine2* , SkOperand2::OpType toType, SkScriptValue2* value);
220 void addTokenConst(SkScriptValue2* , AddTokenRegister , SkOperand2::OpType , TypeOp );
227 const SkOperand2::OpType* paramTypes, int paramTypeCount);
228 void convertToString(SkOperand2* operand, SkOperand2::OpType type) { in convertToString()
232 convertTo(SkOperand2::kString, &scriptValue); in convertToString()
239 SkOperand2::OpType getUnboxType(SkOperand2 scriptValue);
265 SkOperand2::OpType fReturnType;
[all …]
DSkOpArray.h14 typedef SkLongArray(SkOperand2) SkTDOperand2Array;
19 SkOpArray(SkOperand2::OpType type);
20 bool getIndex(int index, SkOperand2* operand);
21 SkOperand2::OpType getType() { return fType; } in getType()
22 void setType(SkOperand2::OpType type) { in setType()
26 SkOperand2::OpType fType;
DSkScriptDecompile.cpp90 #define OperandName(op) {SkOperand2::op, #op }
93 SkOperand2::OpType fType;
115 SkOperand2::OpType type = SkOperand2::kNoType; in ValidateDecompileTable()
118 type = (SkOperand2::OpType) (1 << index); in ValidateDecompileTable()
172 SkOperand2::OpType type; in decompile()
182 type = (SkOperand2::OpType) (type & ~(1 << index)); in decompile()
DSkOpArray.cpp10 SkOpArray::SkOpArray() : fType(SkOperand2::kNoType) { in SkOpArray()
13 SkOpArray::SkOpArray(SkOperand2::OpType type) : fType(type) { in SkOpArray()
16 bool SkOpArray::getIndex(int index, SkOperand2* operand) { in getIndex()
DSkAnimatorScript2.h30 SkDisplayable* displayable, SkOperand2* value);
35 static SkDisplayTypes ToDisplayType(SkOperand2::OpType type);
36 static SkOperand2::OpType ToOpType(SkDisplayTypes type);
DSkScriptRuntime.h35 bool getResult(SkOperand2* result);
43 SkTDStack<SkOperand2> fRunStack;
DSkDisplayable.h27 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
DSkScriptRuntime.cpp63 SkOperand2 operand[2]; // 1=accumulator and 2=operand in executeTokens()
72 operand[0].fArray = new SkOpArray(SkOperand2::kNoType /*fReturnType*/); in executeTokens()
151 SkOperand2::OpType type; in executeTokens()
161 if (callBackUnbox->convert(SkOperand2::kObject, &operand[0]) == false) in executeTokens()
324 bool SkScriptRuntime::getResult(SkOperand2* result) { in getResult()
DSkDisplayable.cpp414 SkOpArray* params, SkDisplayTypes, SkOperand2* ) { in executeFunction2() argument
467 bool SkDisplayable::getProperty2(int index, SkOperand2* value) const { in getProperty2()
/external/skia/gyp/
Danimator.gyp153 '../src/animator/SkOperand2.h',
/external/skia/experimental/iOSSampleApp/iOSSampleApp.xcodeproj/
Dproject.pbxproj1255 …3B127E00064D447 /* SkOperand2.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType …
2621 260E073513B127E00064D447 /* SkOperand2.h */,