Home
last modified time | relevance | path

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

/external/skia/tests/
DGrQuadListTest.cpp58 list2D.push_back(make_2d_quad(), GrQuadType::kRect); in TEST()
59 list2D.push_back(make_2d_persp_quad(), GrQuadType::kRect); in TEST()
63 ASSERTF(list2D.quadType() == GrQuadType::kRect, "Unexpected quad type: %d", in TEST()
69 list2D.push_back(make_3d_persp_quad(), GrQuadType::kPerspective); in TEST()
70 ASSERTF(list2D.quadType() == GrQuadType::kPerspective, in TEST()
84 list3D.push_back(make_3d_persp_quad(), GrQuadType::kPerspective); in TEST()
85 list3D.push_back(make_2d_persp_quad(), GrQuadType::kRect); in TEST()
86 list3D.push_back(make_2d_quad(), GrQuadType::kRect); in TEST()
99 list2D.push_back(make_2d_quad(), GrQuadType::kRect, {1, 1.f}); in TEST()
100 list2D.push_back(make_2d_persp_quad(), GrQuadType::kRect, {2, 2.f}); in TEST()
[all …]
/external/skqp/tests/
DGrQuadListTest.cpp58 list2D.push_back(make_2d_quad(), GrQuadType::kRect); in TEST()
59 list2D.push_back(make_2d_persp_quad(), GrQuadType::kRect); in TEST()
63 ASSERTF(list2D.quadType() == GrQuadType::kRect, "Unexpected quad type: %d", in TEST()
69 list2D.push_back(make_3d_persp_quad(), GrQuadType::kPerspective); in TEST()
70 ASSERTF(list2D.quadType() == GrQuadType::kPerspective, in TEST()
84 list3D.push_back(make_3d_persp_quad(), GrQuadType::kPerspective); in TEST()
85 list3D.push_back(make_2d_persp_quad(), GrQuadType::kRect); in TEST()
86 list3D.push_back(make_2d_quad(), GrQuadType::kRect); in TEST()
99 list2D.push_back(make_2d_quad(), GrQuadType::kRect, {1, 1.f}); in TEST()
100 list2D.push_back(make_2d_persp_quad(), GrQuadType::kRect, {2, 2.f}); in TEST()
[all …]
/external/skqp/src/gpu/
DGrQuad.h28 enum class GrQuadType { enum
35 static const int kGrQuadTypeCount = static_cast<int>(GrQuadType::kLast) + 1;
40 GrQuadType GrQuadTypeForTransformedRect(const SkMatrix& matrix);
47 const Q& quad, GrQuadType knownQuadType,
90 GrQuadType quadType() const;
111 SkRect bounds(GrQuadType type) const { in bounds()
116 if (type == GrQuadType::kPerspective) { in bounds()
141 GrQuadType quadType() const;
181 GrQuadType quadType() const { return fType; }
183 void reserve(int count, GrQuadType forType) {
[all …]
DGrQuad.cpp60 GrQuadType GrQuad::quadType() const { in quadType()
64 return GrQuadType::kRect; in quadType()
66 return GrQuadType::kRectilinear; in quadType()
68 return GrQuadType::kStandard; in quadType()
72 GrQuadType GrPerspQuad::quadType() const { in quadType()
74 return GrQuadType::kPerspective; in quadType()
78 return GrQuadType::kRect; in quadType()
80 return GrQuadType::kRectilinear; in quadType()
82 return GrQuadType::kStandard; in quadType()
96 const Q& quad, GrQuadType knownType, in GrResolveAATypeForQuad()
[all …]
/external/skia/src/gpu/
DGrQuad.h28 enum class GrQuadType { enum
35 static const int kGrQuadTypeCount = static_cast<int>(GrQuadType::kLast) + 1;
40 GrQuadType GrQuadTypeForTransformedRect(const SkMatrix& matrix);
47 const Q& quad, GrQuadType knownQuadType,
101 GrQuadType quadType() const;
144 SkRect bounds(GrQuadType type) const { in bounds()
149 if (type == GrQuadType::kPerspective) { in bounds()
174 GrQuadType quadType() const;
214 GrQuadType quadType() const { return fType; }
216 void reserve(int count, GrQuadType forType) {
[all …]
DGrQuad.cpp60 GrQuadType GrQuad::quadType() const { in quadType()
64 return GrQuadType::kRect; in quadType()
66 return GrQuadType::kRectilinear; in quadType()
68 return GrQuadType::kStandard; in quadType()
72 GrQuadType GrPerspQuad::quadType() const { in quadType()
74 return GrQuadType::kPerspective; in quadType()
78 return GrQuadType::kRect; in quadType()
80 return GrQuadType::kRectilinear; in quadType()
82 return GrQuadType::kStandard; in quadType()
150 const Q& quad, GrQuadType knownType, in GrResolveAATypeForQuad()
[all …]
/external/skqp/src/gpu/ops/
DGrQuadPerEdgeAA.h35 VertexSpec(GrQuadType deviceQuadType, ColorType colorType, GrQuadType localQuadType, in VertexSpec()
45 GrQuadType deviceQuadType() const { return static_cast<GrQuadType>(fDeviceQuadType); } in deviceQuadType()
46 GrQuadType localQuadType() const { return static_cast<GrQuadType>(fLocalQuadType); } in localQuadType()
DGrFillRectOp.cpp65 GrQuadType deviceQuadType, in Make()
67 GrQuadType localQuadType) { in Make()
78 const GrPerspQuad& deviceQuad, GrQuadType deviceQuadType, in FillRectOp()
79 const GrPerspQuad& localQuad, GrQuadType localQuadType) in FillRectOp()
276 GrQuadType localQuadType, const SkPMColor4f& color, GrQuadAAFlags edgeAA, in addQuad()
343 GrPerspQuad(rect, SkMatrix::I()), GrQuadType::kRect); in MakePerEdge()
354 GrQuadType localQuadType = GrQuadTypeForTransformedRect(localMatrix); in MakePerEdgeWithLocalMatrix()
370 GrPerspQuad(localRect, SkMatrix::I()), GrQuadType::kRect); in MakePerEdgeWithLocalRect()
382 GrQuadType deviceQuadType = GrQuadTypeForTransformedRect(viewMatrix); in MakeSet()
DGrTextureOp.cpp203 GrQuadType quadType = GrQuadTypeForTransformedRect(viewMatrix); in TextureOp()
214 if (quadType == GrQuadType::kRect) { in TextureOp()
256 GrQuadType quadType = GrQuadTypeForTransformedRect(viewMatrix); in TextureOp()
279 mustFilter = quadType != GrQuadType::kRect || in TextureOp()
325 GrQuadType quadType = GrQuadType::kRect; in onPrepareDraws()
358 GrQuadType::kRect, /* hasLocal */ true, domain, aaType, in onPrepareDraws()
DGrQuadPerEdgeAA.cpp352 vb->write(x[i], y[i], If(spec.deviceQuadType() == GrQuadType::kPerspective, w[i]), in write_quad()
362 vb->write(u[i], v[i], If(spec.localQuadType() == GrQuadType::kPerspective, r[i])); in write_quad()
432 if (spec.deviceQuadType() == GrQuadType::kPerspective) { in Tessellate()
445 spec.deviceQuadType() <= GrQuadType::kRectilinear); in Tessellate()
501 return this->deviceQuadType() == GrQuadType::kPerspective ? 3 : 2; in deviceDimensionality()
505 return fHasLocalCoords ? (this->localQuadType() == GrQuadType::kPerspective ? 3 : 2) : 0; in localDimensionality()
/external/skia/src/gpu/ops/
DGrQuadPerEdgeAA.h38 VertexSpec(GrQuadType deviceQuadType, ColorType colorType, GrQuadType localQuadType, in VertexSpec()
48 GrQuadType deviceQuadType() const { return static_cast<GrQuadType>(fDeviceQuadType); } in deviceQuadType()
49 GrQuadType localQuadType() const { return static_cast<GrQuadType>(fLocalQuadType); } in localQuadType()
DGrFillRectOp.cpp66 GrQuadType deviceQuadType, in Make()
68 GrQuadType localQuadType) { in Make()
79 const GrPerspQuad& deviceQuad, GrQuadType deviceQuadType, in FillRectOp()
80 const GrPerspQuad& localQuad, GrQuadType localQuadType) in FillRectOp()
301 GrQuadType localQuadType, const SkPMColor4f& color, GrQuadAAFlags edgeAA, in addQuad()
366 GrQuadType dstQuadType = GrQuadTypeForTransformedRect(viewMatrix); in MakePerEdge()
369 GrPerspQuad(rect), GrQuadType::kRect); in MakePerEdge()
380 GrQuadType dstQuadType = GrQuadTypeForTransformedRect(viewMatrix); in MakePerEdgeWithLocalMatrix()
381 GrQuadType localQuadType = GrQuadTypeForTransformedRect(localMatrix); in MakePerEdgeWithLocalMatrix()
395 GrQuadType dstQuadType = GrQuadTypeForTransformedRect(viewMatrix); in MakePerEdgeWithLocalRect()
[all …]
DGrTextureOp.cpp123 GrQuadType dstQuadType = GrQuadTypeForTransformedRect(viewMatrix); in Make()
125 if (dstQuadType == GrQuadType::kRect) { in Make()
138 nullptr, GrQuadType::kRect, aaType, aaFlags, std::move(textureColorSpaceXform)); in Make()
152 GrQuadType dstQuadType = viewMatrix.hasPerspective() ? GrQuadType::kPerspective in Make()
153 : GrQuadType::kStandard; in Make()
169 &grSrcQuad, GrQuadType::kStandard, aaType, aaFlags, in Make()
257 const GrPerspQuad& dstQuad, GrQuadType dstQuadType, in TextureOp()
259 const GrPerspQuad* srcQuad, GrQuadType srcQuadType, GrAAType aaType, in TextureOp()
334 GrQuadType quadType = GrQuadTypeForTransformedRect(ctm); in TextureOp()
335 if (set[p].fDstClipQuad && quadType != GrQuadType::kPerspective) { in TextureOp()
[all …]
DGrQuadPerEdgeAA.cpp635 If(spec.deviceQuadType() == GrQuadType::kPerspective, quad.fW[i]), in write_quad()
648 If(spec.localQuadType() == GrQuadType::kPerspective, quad.fR[i])); in write_quad()
725 if (spec.deviceQuadType() == GrQuadType::kPerspective) { in Tessellate()
735 aaFlags, spec.deviceQuadType() <= GrQuadType::kRectilinear, &inner, &outer); in Tessellate()
789 return this->deviceQuadType() == GrQuadType::kPerspective ? 3 : 2; in deviceDimensionality()
793 return fHasLocalCoords ? (this->localQuadType() == GrQuadType::kPerspective ? 3 : 2) : 0; in localDimensionality()
/external/skia/samplecode/
DSampleDegenerateQuads.cpp392 {GrQuadType::kStandard, GrQuadPerEdgeAA::ColorType::kNone, in getTessellatedPoints()
393 GrQuadType::kRect, false, GrQuadPerEdgeAA::Domain::kNo, in getTessellatedPoints()