Home
last modified time | relevance | path

Searched refs:VectorValue (Results 1 – 23 of 23) sorted by relevance

/external/skia/modules/skottie/src/
DSkottieValue.cpp44 bool ValueTraits<VectorValue>::FromJSON(const skjson::Value& jv, const internal::AnimationBuilder*, in FromJSON()
45 VectorValue* v) { in FromJSON()
50 bool ValueTraits<VectorValue>::CanLerp(const VectorValue& v1, const VectorValue& v2) { in CanLerp()
55 void ValueTraits<VectorValue>::Lerp(const VectorValue& v0, const VectorValue& v1, float t, in Lerp()
56 VectorValue* result) { in Lerp()
68 SkColor ValueTraits<VectorValue>::As<SkColor>(const VectorValue& v) { in As()
83 SkPoint ValueTraits<VectorValue>::As<SkPoint>(const VectorValue& vec) { in As()
92 SkSize ValueTraits<VectorValue>::As<SkSize>(const VectorValue& vec) { in As()
281 VectorValue color_vec; in FromJSON()
282 if (!ValueTraits<VectorValue>::FromJSON(*jcolor, abuilder, &color_vec)) { in FromJSON()
[all …]
DSkottieShapeLayer.cpp51 auto p_attached = abuilder->bindProperty<VectorValue>(jrect["p"], ascope, in AttachRRectGeometry()
52 [adapter](const VectorValue& p) { in AttachRRectGeometry()
53 adapter->setPosition(ValueTraits<VectorValue>::As<SkPoint>(p)); in AttachRRectGeometry()
55 auto s_attached = abuilder->bindProperty<VectorValue>(jrect["s"], ascope, in AttachRRectGeometry()
56 [adapter](const VectorValue& s) { in AttachRRectGeometry()
57 adapter->setSize(ValueTraits<VectorValue>::As<SkSize>(s)); in AttachRRectGeometry()
81 auto p_attached = abuilder->bindProperty<VectorValue>(jellipse["p"], ascope, in AttachEllipseGeometry()
82 [adapter](const VectorValue& p) { in AttachEllipseGeometry()
83 adapter->setPosition(ValueTraits<VectorValue>::As<SkPoint>(p)); in AttachEllipseGeometry()
85 auto s_attached = abuilder->bindProperty<VectorValue>(jellipse["s"], ascope, in AttachEllipseGeometry()
[all …]
DSkottie.cpp73 static const VectorValue g_default_vec_0 = { 0, 0}, in attachMatrix2D()
79 auto bound = this->bindProperty<VectorValue>(t["a"], ascope, in attachMatrix2D()
80 [adapter](const VectorValue& a) { in attachMatrix2D()
81 adapter->setAnchorPoint(ValueTraits<VectorValue>::As<SkPoint>(a)); in attachMatrix2D()
83 bound |= this->bindProperty<VectorValue>(t["p"], ascope, in attachMatrix2D()
84 [adapter](const VectorValue& p) { in attachMatrix2D()
85 adapter->setPosition(ValueTraits<VectorValue>::As<SkPoint>(p)); in attachMatrix2D()
87 bound |= this->bindProperty<VectorValue>(t["s"], ascope, in attachMatrix2D()
88 [adapter](const VectorValue& s) { in attachMatrix2D()
89 adapter->setScale(ValueTraits<VectorValue>::As<SkVector>(s)); in attachMatrix2D()
[all …]
DSkottieAnimator.cpp307 std::function<void(const VectorValue&)>&& apply, in Make()
308 const VectorValue*) { in Make() argument
340 const VectorValue vec = { fX, fY }; in onTick()
348 explicit SplitPointAnimator(std::function<void(const VectorValue&)>&& apply) in SplitPointAnimator()
351 const std::function<void(const VectorValue&)> fApplyFunc;
363 std::function<void(const VectorValue&)>&& apply, in BindSplitPositionProperty()
364 const VectorValue* noop) { in BindSplitPositionProperty()
386 std::function<void(const VectorValue&)>&& apply, in bindProperty()
387 const VectorValue* noop) const { in bindProperty()
DSkottieLayerEffect.cpp188 abuilder->bindProperty<VectorValue>((*color_prop)["v"], ascope, in AttachDropShadowLayerEffect()
189 [shadow_adapter](const VectorValue& c) { in AttachDropShadowLayerEffect()
190 shadow_adapter->setColor(ValueTraits<VectorValue>::As<SkColor>(c)); in AttachDropShadowLayerEffect()
DSkottieAdapter.h119 explicit Vec3(const VectorValue&);
174 ADAPTER_PROPERTY(ColorStops, VectorValue , VectorValue() )
DSkottieAdapter.cpp72 TransformAdapter3D::Vec3::Vec3(const VectorValue& v) { in Vec3()
203 const VectorValue rgb({ cs[1], cs[2], cs[3] }); in apply()
205 stops.push_back({ pos, ValueTraits<VectorValue>::As<SkColor>(rgb) }); in apply()
DSkottieValue.h40 using VectorValue = std::vector<ScalarValue>; variable
/external/skqp/modules/skottie/src/
DSkottieValue.cpp44 bool ValueTraits<VectorValue>::FromJSON(const skjson::Value& jv, const internal::AnimationBuilder*, in FromJSON()
45 VectorValue* v) { in FromJSON()
50 bool ValueTraits<VectorValue>::CanLerp(const VectorValue& v1, const VectorValue& v2) { in CanLerp()
55 void ValueTraits<VectorValue>::Lerp(const VectorValue& v0, const VectorValue& v1, float t, in Lerp()
56 VectorValue* result) { in Lerp()
68 SkColor ValueTraits<VectorValue>::As<SkColor>(const VectorValue& v) { in As()
83 SkPoint ValueTraits<VectorValue>::As<SkPoint>(const VectorValue& vec) { in As()
92 SkSize ValueTraits<VectorValue>::As<SkSize>(const VectorValue& vec) { in As()
281 VectorValue color_vec; in FromJSON()
282 if (!ValueTraits<VectorValue>::FromJSON(*jcolor, abuilder, &color_vec)) { in FromJSON()
[all …]
DSkottieShapeLayer.cpp51 auto p_attached = abuilder->bindProperty<VectorValue>(jrect["p"], ascope, in AttachRRectGeometry()
52 [adapter](const VectorValue& p) { in AttachRRectGeometry()
53 adapter->setPosition(ValueTraits<VectorValue>::As<SkPoint>(p)); in AttachRRectGeometry()
55 auto s_attached = abuilder->bindProperty<VectorValue>(jrect["s"], ascope, in AttachRRectGeometry()
56 [adapter](const VectorValue& s) { in AttachRRectGeometry()
57 adapter->setSize(ValueTraits<VectorValue>::As<SkSize>(s)); in AttachRRectGeometry()
81 auto p_attached = abuilder->bindProperty<VectorValue>(jellipse["p"], ascope, in AttachEllipseGeometry()
82 [adapter](const VectorValue& p) { in AttachEllipseGeometry()
83 adapter->setPosition(ValueTraits<VectorValue>::As<SkPoint>(p)); in AttachEllipseGeometry()
85 auto s_attached = abuilder->bindProperty<VectorValue>(jellipse["s"], ascope, in AttachEllipseGeometry()
[all …]
DSkottie.cpp67 static const VectorValue g_default_vec_0 = { 0, 0}, in attachMatrix2D()
73 auto bound = this->bindProperty<VectorValue>(t["a"], ascope, in attachMatrix2D()
74 [adapter](const VectorValue& a) { in attachMatrix2D()
75 adapter->setAnchorPoint(ValueTraits<VectorValue>::As<SkPoint>(a)); in attachMatrix2D()
77 bound |= this->bindProperty<VectorValue>(t["p"], ascope, in attachMatrix2D()
78 [adapter](const VectorValue& p) { in attachMatrix2D()
79 adapter->setPosition(ValueTraits<VectorValue>::As<SkPoint>(p)); in attachMatrix2D()
81 bound |= this->bindProperty<VectorValue>(t["s"], ascope, in attachMatrix2D()
82 [adapter](const VectorValue& s) { in attachMatrix2D()
83 adapter->setScale(ValueTraits<VectorValue>::As<SkVector>(s)); in attachMatrix2D()
[all …]
DSkottieAnimator.cpp309 std::function<void(const VectorValue&)>&& apply, in Make()
310 const VectorValue*) { in Make() argument
342 const VectorValue vec = { fX, fY }; in onTick()
350 explicit SplitPointAnimator(std::function<void(const VectorValue&)>&& apply) in SplitPointAnimator()
353 const std::function<void(const VectorValue&)> fApplyFunc;
365 std::function<void(const VectorValue&)>&& apply, in BindSplitPositionProperty()
366 const VectorValue* noop) { in BindSplitPositionProperty()
388 std::function<void(const VectorValue&)>&& apply, in bindProperty()
389 const VectorValue* noop) const { in bindProperty()
DSkottieAdapter.h117 explicit Vec3(const VectorValue&);
172 ADAPTER_PROPERTY(ColorStops, VectorValue , VectorValue() )
DSkottieAdapter.cpp70 TransformAdapter3D::Vec3::Vec3(const VectorValue& v) { in Vec3()
201 const VectorValue rgb({ cs[1], cs[2], cs[3] }); in apply()
203 stops.push_back({ pos, ValueTraits<VectorValue>::As<SkColor>(rgb) }); in apply()
DSkottieValue.h40 using VectorValue = std::vector<ScalarValue>; variable
/external/skia/src/utils/
DSkJSON.h243 class VectorValue : public Value {
273 class ArrayValue final : public VectorValue<Value, Value::Type::kArray> {
294 return this->cast<VectorValue<char, Value::Type::kString>>()->size(); in size()
303 : this->cast<VectorValue<char, Value::Type::kString>>()->begin(); in begin()
309 : this->cast<VectorValue<char, Value::Type::kString>>()->end(); in end()
318 class ObjectValue final : public VectorValue<Member, Value::Type::kObject> {
DSkJSON.cpp150 auto* data = this->cast<VectorValue<char, Value::Type::kString>>()->begin(); in initLongString()
/external/skqp/src/utils/
DSkJSON.h243 class VectorValue : public Value {
273 class ArrayValue final : public VectorValue<Value, Value::Type::kArray> {
294 return this->cast<VectorValue<char, Value::Type::kString>>()->size(); in size()
303 : this->cast<VectorValue<char, Value::Type::kString>>()->begin(); in begin()
309 : this->cast<VectorValue<char, Value::Type::kString>>()->end(); in end()
318 class ObjectValue final : public VectorValue<Member, Value::Type::kObject> {
DSkJSON.cpp150 auto* data = this->cast<VectorValue<char, Value::Type::kString>>()->begin(); in initLongString()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DTargetTransformInfoImpl.h577 const auto* VectorValue = cast<Constant>(Val); in minRequiredElementSize() local
593 dyn_cast<ConstantInt>(VectorValue->getAggregateElement(i))) { in minRequiredElementSize()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-stress/
Dllvm-stress.cpp249 ArrayRef<Constant*> VectorValue(TempValues); in getRandomValue() local
250 return ConstantVector::get(VectorValue); in getRandomValue()
/external/llvm/tools/llvm-stress/
Dllvm-stress.cpp209 ArrayRef<Constant*> VectorValue(TempValues); in getRandomValue() local
210 return ConstantVector::get(VectorValue); in getRandomValue()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Vectorize/
DLoopVectorize.cpp2136 Value *VectorValue = nullptr; in getOrCreateVectorValue() local
2138 VectorValue = getBroadcastInstrs(ScalarValue); in getOrCreateVectorValue()
2139 VectorLoopValueMap.setVectorValue(V, Part, VectorValue); in getOrCreateVectorValue()
2146 VectorValue = VectorLoopValueMap.getVectorValue(V, Part); in getOrCreateVectorValue()
2149 return VectorValue; in getOrCreateVectorValue()
2200 Value *VectorValue = VectorLoopValueMap.getVectorValue(V, Instance.Part); in packScalarIntoVectorValue() local
2201 VectorValue = Builder.CreateInsertElement(VectorValue, ScalarInst, in packScalarIntoVectorValue()
2203 VectorLoopValueMap.resetVectorValue(V, Instance.Part, VectorValue); in packScalarIntoVectorValue()
7218 Value *VectorValue = State.ValueMap.getVectorValue(PredInst, Part); in execute() local
7219 InsertElementInst *IEI = cast<InsertElementInst>(VectorValue); in execute()