Home
last modified time | relevance | path

Searched refs:localQuad (Results 1 – 20 of 20) sorted by relevance

/third_party/skia/src/gpu/ops/
DQuadPerEdgeAA.cpp40 const GrQuad* localQuad, in write_quad_generic() argument
47 SkASSERT(!spec.hasLocalCoords() || localQuad); in write_quad_generic()
67 *vb << localQuad->x(i) in write_quad_generic()
68 << localQuad->y(i) in write_quad_generic()
69 << If(spec.localQuadType() == GrQuad::Type::kPerspective, localQuad->w(i)); in write_quad_generic()
92 const GrQuad* localQuad, in write_2d_color() argument
124 const GrQuad* localQuad, in write_2d_uv() argument
136 SkASSERT(localQuad); in write_2d_uv()
141 << localQuad->x(i) in write_2d_uv()
142 << localQuad->y(i); in write_2d_uv()
[all …]
DFillRectOp.cpp36 const GrQuad* localQuad, const SkPMColor4f& color, in dump_quad_info() argument
38 GrQuad safeLocal = localQuad ? *localQuad : GrQuad(); in dump_quad_info()
258 tessellator.append(iter.deviceQuad(), iter.localQuad(), in tessellate()
377 str += dump_quad_info(i, iter.deviceQuad(), iter.localQuad(), in onDumpInfo()
DQuadPerEdgeAA.h146 void append(GrQuad* deviceQuad, GrQuad* localQuad,
157 const GrQuad* deviceQuad, const GrQuad* localQuad,
DTextureOp.cpp736 tessellator.append(iter.deviceQuad(), iter.localQuad(), info.fColor, in FillInVertices()
1085 GrQuad uv = iter.isLocalValid() ? *(iter.localQuad()) : GrQuad(); in onDumpInfo()
/third_party/flutter/skia/src/gpu/ops/
DGrFillRectOp.cpp33 const GrQuad& localQuad, const SkPMColor4f& color, in dump_quad_info() argument
50 localQuad.x(0), localQuad.y(0), localQuad.w(0), in dump_quad_info()
51 localQuad.x(1), localQuad.y(1), localQuad.w(1), in dump_quad_info()
52 localQuad.x(2), localQuad.y(2), localQuad.w(2), in dump_quad_info()
53 localQuad.x(3), localQuad.y(3), localQuad.w(3)); in dump_quad_info()
69 const GrQuad& localQuad) { in Make() argument
73 stencilSettings, deviceQuad, localQuad); in Make()
80 const GrQuad& deviceQuad, const GrQuad& localQuad) in FillRectOp() argument
88 fHelper.isTrivial() ? nullptr : &localQuad); in FillRectOp()
110 str += dump_quad_info(i, iter.deviceQuad(), iter.localQuad(), in dumpInfo()
[all …]
DGrTextureOp.cpp152 const GrQuad& localQuad, in Make() argument
157 deviceQuad, localQuad, domain); in Make()
199 const GrQuad& uv = iter.localQuad(); in dumpInfo()
401 compute_src_quad(origin, iter->localQuad(), iw, ih, h, &srcQuad); in tess()
616 const GrQuad& localQuad, in Make() argument
624 if (filter != GrSamplerState::Filter::kNearest && !filter_has_effect(localQuad, deviceQuad)) { in Make()
630 aaType, aaFlags, deviceQuad, localQuad, domain); in Make()
654 deviceQuad, localQuad); in Make()
DGrTextureOp.h45 const GrQuad& localQuad,
DGrFillRectOp.h35 const GrQuad& localQuad,
DGrQuadPerEdgeAA.h99 const SkPMColor4f& color, const GrQuad& localQuad, const SkRect& domain,
DGrQuadPerEdgeAA.cpp743 const SkPMColor4f& color4f, const GrQuad& localQuad, const SkRect& domain, in Tessellate() argument
746 SkASSERT(!spec.hasLocalCoords() || localQuad.quadType() <= spec.localQuadType()); in Tessellate()
759 outer.fU = localQuad.x4f(); in Tessellate()
760 outer.fV = localQuad.y4f(); in Tessellate()
761 outer.fR = localQuad.w4f(); // Will be ignored if the local quad type isn't perspective in Tessellate()
/third_party/skia/src/gpu/geometry/
DGrQuadBuffer.h52 void append(const GrQuad& deviceQuad, T&& metadata, const GrQuad* localQuad = nullptr);
81 GrQuad* localQuad() { in localQuad() function
265 void GrQuadBuffer<T>::append(const GrQuad& deviceQuad, T&& metadata, const GrQuad* localQuad) { in append() argument
266 GrQuad::Type localType = localQuad ? localQuad->quadType() : GrQuad::Type::kAxisAligned; in append()
267 int entrySize = this->entrySize(deviceQuad.quadType(), localQuad ? &localType : nullptr); in append()
274 h->fHasLocals = static_cast<unsigned>(localQuad != nullptr); in append()
275 h->fLocalType = static_cast<unsigned>(localQuad ? localQuad->quadType() in append()
286 if (localQuad) { in append()
287 coords = this->packQuad(*localQuad, coords); in append()
296 if (localQuad && localQuad->quadType() > fLocalType) { in append()
[all …]
DGrQuadUtils.h58 void reset(const GrQuad& deviceQuad, const GrQuad* localQuad);
164 void reset(const GrQuad& deviceQuad, const GrQuad* localQuad);
DGrQuadUtils.cpp932 void TessellationHelper::Vertices::reset(const GrQuad& deviceQuad, const GrQuad* localQuad) { in reset() argument
938 if (localQuad) { in reset()
939 fU = localQuad->x4f(); in reset()
940 fV = localQuad->y4f(); in reset()
941 fR = localQuad->w4f(); in reset()
942 fUVRCount = localQuad->hasPerspective() ? 3 : 2; in reset()
1113 void TessellationHelper::reset(const GrQuad& deviceQuad, const GrQuad* localQuad) { in reset() argument
1116 fLocalType = localQuad ? localQuad->quadType() : GrQuad::Type::kAxisAligned; in reset()
1123 fOriginal.reset(deviceQuad, localQuad); in reset()
/third_party/flutter/skia/src/gpu/geometry/
DGrQuadBuffer.h52 void append(const GrQuad& deviceQuad, T&& metadata, const GrQuad* localQuad = nullptr);
79 const GrQuad& localQuad() const { in localQuad() function
272 void GrQuadBuffer<T>::append(const GrQuad& deviceQuad, T&& metadata, const GrQuad* localQuad) { in append() argument
273 GrQuad::Type localType = localQuad ? localQuad->quadType() : GrQuad::Type::kAxisAligned; in append()
274 int entrySize = this->entrySize(deviceQuad.quadType(), localQuad ? &localType : nullptr); in append()
281 h->fHasLocals = static_cast<unsigned>(localQuad != nullptr); in append()
282 h->fLocalType = static_cast<unsigned>(localQuad ? localQuad->quadType() in append()
293 if (localQuad) { in append()
294 coords = this->packQuad(*localQuad, coords); in append()
303 if (localQuad && localQuad->quadType() > fLocalType) { in append()
[all …]
/third_party/skia/tests/
DGrQuadBufferTest.cpp121 assert_quad_eq(r, expectedLocalQuads[i], *iter.localQuad()); in TEST()
125 ASSERT(!iter.localQuad()); in TEST()
168 assert_quad_eq(r, quadsB[i], *iter.localQuad()); in TEST()
171 ASSERT(!iter.localQuad()); in TEST()
181 ASSERT(!iter.localQuad()); in TEST()
184 assert_quad_eq(r, quadsA[j], *iter.localQuad()); in TEST()
229 assert_quad_eq(r, quad, *iter.localQuad()); in TEST()
232 ASSERT(!iter.localQuad()); in TEST()
/third_party/flutter/skia/tests/
DGrQuadCropTest.cpp30 GrQuad localQuad = GrQuad::MakeFromRect(kDrawRect, localMatrix ? *localMatrix : SkMatrix::I()); in run_crop_axis_aligned_test() local
31 GrQuad* localQuadPtr = localMatrix ? &localQuad : nullptr; in run_crop_axis_aligned_test()
59 SkPoint actualPoint = localQuad.point(p); in run_crop_axis_aligned_test()
117 GrQuad localQuad = GrQuad::MakeFromRect(drawRect, *localMatrix); in run_crop_fully_covered_test() local
120 GrQuad originalLocalQuad = localQuad; in run_crop_fully_covered_test()
123 bool exact = GrQuadUtils::CropToRect(kDrawRect, clipAA, &edgeFlags, &drawQuad, &localQuad); in run_crop_fully_covered_test()
134 ASSERT_NEARLY_EQUAL(originalLocalQuad.x(i), localQuad.x(i)); in run_crop_fully_covered_test()
135 ASSERT_NEARLY_EQUAL(originalLocalQuad.y(i), localQuad.y(i)); in run_crop_fully_covered_test()
136 ASSERT_NEARLY_EQUAL(originalLocalQuad.w(i), localQuad.w(i)); in run_crop_fully_covered_test()
DGrQuadBufferTest.cpp121 assert_quad_eq(r, expectedLocalQuads[i], iter.localQuad()); in TEST()
168 assert_quad_eq(r, quadsB[i], iter.localQuad()); in TEST()
182 assert_quad_eq(r, quadsA[j], iter.localQuad()); in TEST()
227 assert_quad_eq(r, quad, iter.localQuad()); in TEST()
/third_party/flutter/skia/src/gpu/
DGrRenderTargetContext.h169 const SkPoint* localQuad = optionalLocalQuad ? optionalLocalQuad : quad; in fillQuadWithEdgeAA() local
172 GrQuad::MakeFromSkQuad(localQuad, SkMatrix::I())); in fillQuadWithEdgeAA()
573 GrQuad* localQuad);
584 const GrQuad& localQuad,
597 const GrQuad& localQuad,
DGrRenderTargetContextPriv.h74 GrQuad localQuad = localMatrix ? GrQuad::MakeFromRect(rect, *localMatrix) : GrQuad(rect); variable
77 GrQuad::MakeFromRect(rect, viewMatrix), localQuad, ss);
DGrRenderTargetContext.cpp474 GrQuad* deviceQuad, GrQuad* localQuad) { in attemptQuadOptimization() argument
500 localQuad = nullptr; in attemptQuadOptimization()
553 if (GrQuadUtils::CropToRect(clipBounds, clipAA, &newFlags, deviceQuad, localQuad)) { in attemptQuadOptimization()
594 if (GrQuadUtils::CropToRect(clipBounds, clipAA, &newFlags, deviceQuad, localQuad) && in attemptQuadOptimization()
623 GrQuadUtils::CropToRect(clipBounds, clipAA, &newFlags, deviceQuad, localQuad); in attemptQuadOptimization()
633 const GrQuad& localQuad, in drawFilledQuad() argument
651 GrQuad croppedLocalQuad = localQuad; in drawFilledQuad()
675 const GrQuad& localQuad, in drawTexturedQuad() argument
687 GrQuad croppedLocalQuad = localQuad; in drawTexturedQuad()