/external/skia/tests/ |
D | GrQuadBufferTest.cpp | 23 static void assert_quad_eq(skiatest::Reporter* r, const GrQuad& expected, const GrQuad& actual) { in assert_quad_eq() 43 static std::vector<GrQuad> generate_quads(float seed, int cnt, const GrQuad::Type types[]) { in generate_quads() 54 std::vector<GrQuad> quads; in generate_quads() 57 GrQuad quad; in generate_quads() 59 case GrQuad::Type::kAxisAligned: in generate_quads() 60 quad = GrQuad(rect); in generate_quads() 62 case GrQuad::Type::kRectilinear: in generate_quads() 63 quad = GrQuad::MakeFromRect(rect, rotate); in generate_quads() 65 case GrQuad::Type::kGeneral: in generate_quads() 66 quad = GrQuad::MakeFromRect(rect, skew); in generate_quads() [all …]
|
D | GrQuadCropTest.cpp | 29 DrawQuad quad = {GrQuad::MakeFromRect(kDrawRect, viewMatrix), in run_crop_axis_aligned_test() 30 GrQuad::MakeFromRect(kDrawRect, localMatrix ? *localMatrix : SkMatrix::I()), in run_crop_axis_aligned_test() 35 ASSERTF(quad.fDevice.quadType() == GrQuad::Type::kAxisAligned, in run_crop_axis_aligned_test() 112 DrawQuad quad = {GrQuad::MakeFromRect(drawRect, viewMatrix), in run_crop_fully_covered_test() 113 GrQuad::MakeFromRect(drawRect, localMatrix ? *localMatrix : SkMatrix::I()), in run_crop_fully_covered_test() 145 ASSERTF(quad.fDevice.quadType() == GrQuad::Type::kAxisAligned, "Unexpected quad type"); in run_crop_fully_covered_test()
|
D | TextureOpTest.cpp | 54 quad.fDevice = GrQuad::MakeFromRect(rect.makeOutset(0.5f, 0.5f), SkMatrix::I()); in create_op() 55 quad.fLocal = GrQuad(rect); in create_op()
|
D | BulkRectTest.cpp | 144 quad.fDevice = GrQuad::MakeFromRect(set[i].fDstRect, SkMatrix::I()); in textureop_creation_test() 145 quad.fLocal = GrQuad(set[i].fSrcRect); in textureop_creation_test()
|
D | OnFlushCallbackTest.cpp | 63 fLocalQuad = GrQuad(*localRect); in NonAARectOp() 95 GrQuad fLocalQuad; 252 fLocalQuad = GrQuad(localRect); in setLocalRect()
|
/external/skia/src/gpu/geometry/ |
D | GrQuadBuffer.h | 18 , fDeviceType(GrQuad::Type::kAxisAligned) in GrQuadBuffer() 19 , fLocalType(GrQuad::Type::kAxisAligned) { in GrQuadBuffer() 30 , fDeviceType(GrQuad::Type::kAxisAligned) 31 , fLocalType(GrQuad::Type::kAxisAligned) { 41 GrQuad::Type deviceQuadType() const { return fDeviceType; } in deviceQuadType() 45 GrQuad::Type localQuadType() const { return fLocalType; } in localQuadType() 52 void append(const GrQuad& deviceQuad, T&& metadata, const GrQuad* localQuad = nullptr); 77 GrQuad* deviceQuad() { this->validate(); return &fDeviceQuad; } in deviceQuad() 81 GrQuad* localQuad() { in localQuad() 93 GrQuad fDeviceQuad; [all …]
|
D | GrQuadUtils.h | 24 const GrQuad& quad, GrAAType* outAAtype, GrQuadAAFlags* outEdgeFlags); 49 inline void Outset(const skvx::Vec<4, float>& edgeDistances, GrQuad* quad); 56 void reset(const GrQuad& deviceQuad, const GrQuad* localQuad); 72 GrQuad* deviceInset, GrQuad* localInset); 79 GrQuad* deviceOutset, GrQuad* localOutset); 112 const skvx::Vec<4, float>& ws, GrQuad::Type quadType); 143 void reset(const EdgeVectors& edgeVectors, GrQuad::Type quadType, 155 void reset(const GrQuad& deviceQuad, const GrQuad* localQuad); 157 void asGrQuads(GrQuad* deviceOut, GrQuad::Type deviceType, 158 GrQuad* localOut, GrQuad::Type localType) const; [all …]
|
D | GrQuad.cpp | 72 static GrQuad::Type quad_type_for_transformed_rect(const SkMatrix& matrix) { in quad_type_for_transformed_rect() 74 return GrQuad::Type::kAxisAligned; in quad_type_for_transformed_rect() 76 return GrQuad::Type::kRectilinear; in quad_type_for_transformed_rect() 78 return GrQuad::Type::kPerspective; in quad_type_for_transformed_rect() 80 return GrQuad::Type::kGeneral; in quad_type_for_transformed_rect() 86 static GrQuad::Type quad_type_for_points(const SkPoint pts[4], const SkMatrix& matrix) { in quad_type_for_points() 88 return GrQuad::Type::kPerspective; in quad_type_for_points() 97 return GrQuad::Type::kGeneral; in quad_type_for_points() 101 GrQuad GrQuad::MakeFromRect(const SkRect& rect, const SkMatrix& m) { in MakeFromRect() 113 return GrQuad(x, y, w, type); in MakeFromRect() [all …]
|
D | GrQuad.h | 22 class GrQuad { 43 GrQuad() = default; 45 explicit GrQuad(const SkRect& rect) in GrQuad() function 49 static GrQuad MakeFromRect(const SkRect&, const SkMatrix&); 54 static GrQuad MakeFromSkQuad(const SkPoint pts[4], const SkMatrix&); 56 GrQuad& operator=(const GrQuad&) = default; 69 if (fType == GrQuad::Type::kPerspective) { in bounds() 140 GrQuad(const skvx::Vec<4, float>& xs, const skvx::Vec<4, float>& ys, Type type) in GrQuad() function 147 GrQuad(const skvx::Vec<4, float>& xs, const skvx::Vec<4, float>& ys, in GrQuad() function 169 GrQuad fDevice; [all …]
|
D | GrQuadUtils.cpp | 227 static bool is_simple_rect(const GrQuad& quad) { in is_simple_rect() 228 if (quad.quadType() != GrQuad::Type::kAxisAligned) { in is_simple_rect() 318 SkRect GrQuad::projectedBounds() const { in projectedBounds() 359 void ResolveAAType(GrAAType requestedAAType, GrQuadAAFlags requestedEdgeFlags, const GrQuad& quad, in ResolveAAType() 374 if (quad.quadType() == GrQuad::Type::kAxisAligned && !quad.aaHasEffectOnRect()) { in ResolveAAType() 396 if (quad->fDevice.quadType() < GrQuad::Type::kPerspective) { in ClipToW0() 411 GrQuad::Type localType = quad->fLocal.quadType(); in ClipToW0() 412 if (localType < GrQuad::Type::kGeneral) { in ClipToW0() 413 localType = GrQuad::Type::kGeneral; in ClipToW0() 469 v.asGrQuads(&quad->fDevice, GrQuad::Type::kPerspective, in ClipToW0() [all …]
|
/external/skia/src/gpu/ops/ |
D | GrQuadPerEdgeAA.h | 66 VertexSpec(GrQuad::Type deviceQuadType, ColorType colorType, GrQuad::Type localQuadType, in VertexSpec() 79 deviceQuadType > GrQuad::Type::kRectilinear) { } in VertexSpec() 81 GrQuad::Type deviceQuadType() const { return static_cast<GrQuad::Type>(fDeviceQuadType); } in deviceQuadType() 82 GrQuad::Type localQuadType() const { return static_cast<GrQuad::Type>(fLocalQuadType); } in localQuadType() 117 static_assert(GrQuad::kTypeCount <= 4, "GrQuad::Type doesn't fit in 2 bits"); 146 void append(GrQuad* deviceQuad, GrQuad* localQuad, 157 const GrQuad* deviceQuad, const GrQuad* localQuad,
|
D | GrQuadPerEdgeAA.cpp | 31 const GrQuad* deviceQuad, const GrQuad* localQuad, in write_quad_generic() 43 If(spec.deviceQuadType() == GrQuad::Type::kPerspective, deviceQuad->w(i)), in write_quad_generic() 57 If(spec.localQuadType() == GrQuad::Type::kPerspective, localQuad->w(i))); in write_quad_generic() 78 const GrQuad* deviceQuad, const GrQuad* localQuad, in write_2d_color() 82 SkASSERT(spec.deviceQuadType() != GrQuad::Type::kPerspective); in write_2d_color() 105 const GrQuad* deviceQuad, const GrQuad* localQuad, in write_2d_uv() 109 SkASSERT(spec.deviceQuadType() != GrQuad::Type::kPerspective); in write_2d_uv() 110 SkASSERT(spec.hasLocalCoords() && spec.localQuadType() != GrQuad::Type::kPerspective); in write_2d_uv() 125 const GrQuad* deviceQuad, const GrQuad* localQuad, in write_2d_color_uv() 129 SkASSERT(spec.deviceQuadType() != GrQuad::Type::kPerspective); in write_2d_color_uv() [all …]
|
D | GrFillRectOp.cpp | 33 static SkString dump_quad_info(int index, const GrQuad* deviceQuad, in dump_quad_info() 34 const GrQuad* localQuad, const SkPMColor4f& color, in dump_quad_info() 36 GrQuad safeLocal = localQuad ? *localQuad : GrQuad(); in dump_quad_info() 474 DrawQuad quad{GrQuad::MakeFromRect(rect, view), GrQuad(rect), GrQuadAAFlags::kNone}; in MakeNonAARect() 490 DrawQuad quad{GrQuad::MakeFromRect(quads[0].fRect, viewMatrix), in MakeOp() 491 GrQuad::MakeFromRect(quads[0].fRect, quads[0].fLocalMatrix), in MakeOp() 501 quad = {GrQuad::MakeFromRect(quads[i].fRect, viewMatrix), in MakeOp() 502 GrQuad::MakeFromRect(quads[i].fRect, quads[i].fLocalMatrix), in MakeOp() 577 DrawQuad quad = {GrQuad::MakeFromRect(rect, viewMatrix), in GR_DRAW_OP_TEST_DEFINE() 578 GrQuad::MakeFromRect(rect, localMatrix), aaFlags}; in GR_DRAW_OP_TEST_DEFINE() [all …]
|
D | GrTextureOp.cpp | 52 static SkSize axis_aligned_quad_size(const GrQuad& quad) { in axis_aligned_quad_size() 53 SkASSERT(quad.quadType() == GrQuad::Type::kAxisAligned); in axis_aligned_quad_size() 62 filter_and_mm_have_effect(const GrQuad& srcQuad, const GrQuad& dstQuad) { in filter_and_mm_have_effect() 64 if (srcQuad.quadType() != GrQuad::Type::kAxisAligned || in filter_and_mm_have_effect() 65 dstQuad.quadType() != GrQuad::Type::kAxisAligned) { in filter_and_mm_have_effect() 168 GrQuad* srcQuad) { in normalize_src_quad() 201 quad.fDevice.quadType() == GrQuad::Type::kAxisAligned && in safe_to_ignore_subset_rect() 202 quad.fLocal.quadType() == GrQuad::Type::kAxisAligned && in safe_to_ignore_subset_rect() 545 quad.fDevice = GrQuad::MakeFromSkQuad(set[q].fDstClipQuad, ctm); in TextureOp() 549 quad.fLocal = GrQuad::MakeFromSkQuad(srcPts, SkMatrix::I()); in TextureOp() [all …]
|
D | GrFillRectOp.h | 17 class GrQuad; variable
|
D | GrDashOp.cpp | 177 vertices.writeQuad(GrQuad::MakeFromRect(rect, matrix), in setup_dashed_rect() 190 vertices.writeQuad(GrQuad::MakeFromRect(rect, matrix), in setup_dashed_rect() 621 vertices.writeQuad(GrQuad::MakeFromRect(rects[rectIndex], geom.fSrcRotInv)); in onPrepareDraws() 634 vertices.writeQuad(GrQuad::MakeFromRect(rects[rectIndex], geom.fSrcRotInv)); in onPrepareDraws() 647 vertices.writeQuad(GrQuad::MakeFromRect(rects[rectIndex], geom.fSrcRotInv)); in onPrepareDraws()
|
/external/skqp/src/gpu/ |
D | GrQuad.h | 54 class GrQuad { 56 GrQuad() = default; 58 GrQuad(const GrQuad& that) = default; 60 explicit GrQuad(const SkRect& rect) in GrQuad() function 65 GrQuad(const SkRect&, const SkMatrix&); 67 explicit GrQuad(const SkPoint pts[4]) in GrQuad() function 71 GrQuad& operator=(const GrQuad& that) = default; 227 QuadData<T>& pushBackImpl(const GrQuad& quad, GrQuadType type) { 291 void push_back(const GrQuad& quad, GrQuadType type) { 315 void push_back(const GrQuad& quad, GrQuadType type, T&& metadata) {
|
D | GrQuad.cpp | 60 GrQuadType GrQuad::quadType() const { in quadType() 132 template void GrResolveAATypeForQuad(GrAAType, GrQuadAAFlags, const GrQuad&, GrQuadType, 149 GrQuad::GrQuad(const SkRect& rect, const SkMatrix& m) { in GrQuad() function in GrQuad 186 bool GrQuad::aaHasEffectOnRect() const { in aaHasEffectOnRect()
|
D | GrVertexWriter.h | 170 void writeQuadValue(const GrQuad& q) { in writeQuadValue()
|
/external/skia/src/gpu/ |
D | GrSurfaceDrawContext.h | 194 DrawQuad quad{GrQuad::MakeFromRect(rect, SkMatrix::I()), in fillPixelsWithLocalMatrix() 195 GrQuad::MakeFromRect(rect, localMatrix), GrQuadAAFlags::kNone}; in fillPixelsWithLocalMatrix() 214 DrawQuad quad{GrQuad::MakeFromRect(rect, viewMatrix), GrQuad(localRect), edgeAA}; 234 DrawQuad quad{GrQuad::MakeFromSkQuad(points, viewMatrix), in fillQuadWithEdgeAA() 235 GrQuad::MakeFromSkQuad(localPoints, SkMatrix::I()), edgeAA}; in fillQuadWithEdgeAA() 293 DrawQuad quad{GrQuad::MakeFromSkQuad(dstQuad, viewMatrix), in drawTextureQuad() 294 GrQuad::MakeFromSkQuad(srcQuad, SkMatrix::I()), edgeAA}; in drawTextureQuad() 577 DrawQuad quad{GrQuad::MakeFromRect(rect, viewMatrix), 578 localMatrix ? GrQuad::MakeFromRect(rect, *localMatrix) : GrQuad(rect),
|
/external/skia/bench/ |
D | GrQuadBench.cpp | 45 fQuads[i].setQuadType(fPerspective ? GrQuad::Type::kPerspective in onDelayedSetup() 46 : GrQuad::Type::kGeneral); in onDelayedSetup() 65 GrQuad fQuads[kQuadCount];
|
/external/skia/samplecode/ |
D | SampleDegenerateQuads.cpp | 411 {GrQuad::Type::kGeneral, GrQuadPerEdgeAA::ColorType::kNone, in getTessellatedPoints() 412 GrQuad::Type::kAxisAligned, false, GrQuadPerEdgeAA::Subset::kNo, in getTessellatedPoints() 414 static const GrQuad kIgnored(SkRect::MakeEmpty()); in getTessellatedPoints() 422 GrQuad quad = GrQuad::MakeFromSkQuad(fCorners, SkMatrix::I()); in getTessellatedPoints()
|
/external/skqp/tests/ |
D | OnFlushCallbackTest.cpp | 61 fLocalQuad = GrQuad(*localRect); in NonAARectOp() 88 GrQuad fLocalQuad; 216 fLocalQuad = GrQuad(localRect); in setLocalRect()
|
D | GrQuadListTest.cpp | 23 static GrQuad make_2d_quad() { in make_2d_quad() 24 return GrQuad(SkRect::MakeLTRB(1.f, 2.f, 3.f, 4.f)); in make_2d_quad()
|
/external/skqp/src/gpu/ops/ |
D | GrDashOp.cpp | 165 vertices.writeQuad(GrQuad(rect, matrix), in setup_dashed_rect() 178 vertices.writeQuad(GrQuad(rect, matrix), in setup_dashed_rect() 589 vertices.writeQuad(GrQuad(rects[rectIndex], geom.fSrcRotInv)); in onPrepareDraws() 602 vertices.writeQuad(GrQuad(rects[rectIndex], geom.fSrcRotInv)); in onPrepareDraws() 615 vertices.writeQuad(GrQuad(rects[rectIndex], geom.fSrcRotInv)); in onPrepareDraws()
|