Home
last modified time | relevance | path

Searched refs:GrQuad (Results 1 – 25 of 49) sorted by relevance

12

/third_party/flutter/skia/tests/
DGrQuadBufferTest.cpp23 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 …]
DGrQuadCropTest.cpp29 GrQuad drawQuad = GrQuad::MakeFromRect(kDrawRect, viewMatrix); in run_crop_axis_aligned_test()
30 GrQuad localQuad = GrQuad::MakeFromRect(kDrawRect, localMatrix ? *localMatrix : SkMatrix::I()); in run_crop_axis_aligned_test()
31 GrQuad* localQuadPtr = localMatrix ? &localQuad : nullptr; in run_crop_axis_aligned_test()
36 ASSERTF(drawQuad.quadType() == GrQuad::Type::kAxisAligned, in run_crop_axis_aligned_test()
113 GrQuad drawQuad = GrQuad::MakeFromRect(drawRect, viewMatrix); in run_crop_fully_covered_test()
117 GrQuad localQuad = GrQuad::MakeFromRect(drawRect, *localMatrix); in run_crop_fully_covered_test()
119 GrQuad originalDrawQuad = drawQuad; in run_crop_fully_covered_test()
120 GrQuad originalLocalQuad = localQuad; in run_crop_fully_covered_test()
147 ASSERTF(drawQuad.quadType() == GrQuad::Type::kAxisAligned, "Unexpected quad type"); in run_crop_fully_covered_test()
/third_party/skia/tests/
DGrQuadBufferTest.cpp23 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 …]
/third_party/skia/src/gpu/geometry/
DGrQuadBuffer.h18 , 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 …]
DGrQuadUtils.h24 const GrQuad& quad, GrAAType* outAAtype, GrQuadAAFlags* outEdgeFlags);
49 inline void Outset(const skvx::Vec<4, float>& edgeDistances, GrQuad* quad);
51 bool WillUseHairline(const GrQuad& quad, GrAAType aaType, GrQuadAAFlags edgeFlags);
58 void reset(const GrQuad& deviceQuad, const GrQuad* localQuad);
74 GrQuad* deviceInset, GrQuad* localInset);
81 GrQuad* deviceOutset, GrQuad* localOutset);
119 const skvx::Vec<4, float>& ws, GrQuad::Type quadType);
152 void reset(const EdgeVectors& edgeVectors, GrQuad::Type quadType,
164 void reset(const GrQuad& deviceQuad, const GrQuad* localQuad);
166 void asGrQuads(GrQuad* deviceOut, GrQuad::Type deviceType,
[all …]
DGrQuad.cpp72 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 …]
DGrQuad.h23 class GrQuad {
44 GrQuad() = default;
45 GrQuad(const GrQuad&) = default;
47 explicit GrQuad(const SkRect& rect) in GrQuad() function
51 static GrQuad MakeFromRect(const SkRect&, const SkMatrix&);
56 static GrQuad MakeFromSkQuad(const SkPoint pts[4], const SkMatrix&);
58 GrQuad& operator=(const GrQuad&) = default;
75 if (fType == GrQuad::Type::kPerspective) { in bounds()
146 GrQuad(const skvx::Vec<4, float>& xs, const skvx::Vec<4, float>& ys, Type type) in GrQuad() function
153 GrQuad(const skvx::Vec<4, float>& xs, const skvx::Vec<4, float>& ys, in GrQuad() function
[all …]
DGrQuadUtils.cpp227 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 …]
/third_party/flutter/skia/src/gpu/geometry/
DGrQuadBuffer.h18 , 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);
74 const GrQuad& deviceQuad() const { this->validate(); return fDeviceQuad; } in deviceQuad()
79 const GrQuad& localQuad() const { in localQuad()
91 GrQuad fDeviceQuad;
[all …]
DGrQuad.cpp73 static GrQuad::Type quad_type_for_transformed_rect(const SkMatrix& matrix) { in quad_type_for_transformed_rect()
75 return GrQuad::Type::kAxisAligned; in quad_type_for_transformed_rect()
77 return GrQuad::Type::kRectilinear; in quad_type_for_transformed_rect()
79 return GrQuad::Type::kPerspective; in quad_type_for_transformed_rect()
81 return GrQuad::Type::kGeneral; in quad_type_for_transformed_rect()
87 static GrQuad::Type quad_type_for_points(const SkPoint pts[4], const SkMatrix& matrix) { in quad_type_for_points()
89 return GrQuad::Type::kPerspective; in quad_type_for_points()
98 return GrQuad::Type::kGeneral; in quad_type_for_points()
102 GrQuad GrQuad::MakeFromRect(const SkRect& rect, const SkMatrix& m) { in MakeFromRect()
114 return GrQuad(x, y, w, type); in MakeFromRect()
[all …]
DGrQuad.h20 class GrQuad {
40 GrQuad() = default;
42 explicit GrQuad(const SkRect& rect) in GrQuad() function
48 GrQuad(const skvx::Vec<4, float>& xs, const skvx::Vec<4, float>& ys, Type type) in GrQuad() function
56 GrQuad(const skvx::Vec<4, float>& xs, const skvx::Vec<4, float>& ys, in GrQuad() function
65 GrQuad(const float xs[4], const float ys[4], const float ws[4], Type type) in GrQuad() function
72 static GrQuad MakeFromRect(const SkRect&, const SkMatrix&);
77 static GrQuad MakeFromSkQuad(const SkPoint pts[4], const SkMatrix&);
79 GrQuad& operator=(const GrQuad&) = default;
DGrQuadUtils.h14 class GrQuad; variable
22 const GrQuad& quad, GrAAType* outAAtype, GrQuadAAFlags* outEdgeFlags);
38 bool CropToRect(const SkRect& cropRect, GrAA cropAA, GrQuadAAFlags* edgeFlags, GrQuad* quad,
39 GrQuad* local=nullptr);
DGrQuadUtils.cpp176 static bool is_simple_rect(const GrQuad& quad) { in is_simple_rect()
177 if (quad.quadType() != GrQuad::Type::kAxisAligned) { in is_simple_rect()
218 void ResolveAAType(GrAAType requestedAAType, GrQuadAAFlags requestedEdgeFlags, const GrQuad& quad, in ResolveAAType()
233 if (quad.quadType() == GrQuad::Type::kAxisAligned && !quad.aaHasEffectOnRect()) { in ResolveAAType()
250 bool CropToRect(const SkRect& cropRect, GrAA cropAA, GrQuadAAFlags* edgeFlags, GrQuad* quad, in CropToRect()
251 GrQuad* local) { in CropToRect()
254 if (quad->quadType() == GrQuad::Type::kAxisAligned) { in CropToRect()
296 if (quad->quadType() == GrQuad::Type::kPerspective) { in CropToRect()
332 quad->setQuadType(GrQuad::Type::kAxisAligned); in CropToRect()
/third_party/flutter/skia/src/gpu/ops/
DGrQuadPerEdgeAA.h39 VertexSpec(GrQuad::Type deviceQuadType, ColorType colorType, GrQuad::Type localQuadType, in VertexSpec()
49 deviceQuadType > GrQuad::Type::kRectilinear) { } in VertexSpec()
51 GrQuad::Type deviceQuadType() const { return static_cast<GrQuad::Type>(fDeviceQuadType); } in deviceQuadType()
52 GrQuad::Type localQuadType() const { return static_cast<GrQuad::Type>(fLocalQuadType); } in localQuadType()
67 static_assert(GrQuad::kTypeCount <= 4, "GrQuad::Type doesn't fit in 2 bits");
98 void* Tessellate(void* vertices, const VertexSpec& spec, const GrQuad& deviceQuad,
99 const SkPMColor4f& color, const GrQuad& localQuad, const SkRect& domain,
DGrFillRectOp.cpp32 static SkString dump_quad_info(int index, const GrQuad& deviceQuad, in dump_quad_info()
33 const GrQuad& localQuad, const SkPMColor4f& color, in dump_quad_info()
68 const GrQuad& deviceQuad, in Make()
69 const GrQuad& localQuad) { in Make()
80 const GrQuad& deviceQuad, const GrQuad& localQuad) in FillRectOp()
283 void addQuad(const GrQuad& deviceQuad, const GrQuad& localQuad, in addQuad()
327 const GrQuad& deviceQuad, in Make()
328 const GrQuad& localQuad, in Make()
340 stencil, GrQuad::MakeFromRect(rect, view), GrQuad(rect)); in MakeNonAARect()
356 GrQuad::MakeFromRect(quads[0].fRect, viewMatrix), in MakeSet()
[all …]
DGrTextureOp.cpp50 static SkSize axis_aligned_quad_size(const GrQuad& quad) { in axis_aligned_quad_size()
51 SkASSERT(quad.quadType() == GrQuad::Type::kAxisAligned); in axis_aligned_quad_size()
58 static bool filter_has_effect(const GrQuad& srcQuad, const GrQuad& dstQuad) { in filter_has_effect()
60 if (srcQuad.quadType() != GrQuad::Type::kAxisAligned || in filter_has_effect()
61 dstQuad.quadType() != GrQuad::Type::kAxisAligned) { in filter_has_effect()
124 static void compute_src_quad(GrSurfaceOrigin origin, const GrQuad& srcQuad, in compute_src_quad()
125 float iw, float ih, float h, GrQuad* out) { in compute_src_quad()
151 const GrQuad& deviceQuad, in Make()
152 const GrQuad& localQuad, in Make()
198 const GrQuad& quad = iter.deviceQuad(); in dumpInfo()
[all …]
DGrFillRectOp.h16 class GrQuad; variable
34 const GrQuad& deviceQuad,
35 const GrQuad& localQuad,
/third_party/skia/src/gpu/ops/
DQuadPerEdgeAA.h66 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,
DQuadPerEdgeAA.cpp39 const GrQuad* deviceQuad, in write_quad_generic()
40 const GrQuad* localQuad, in write_quad_generic()
55 << If(spec.deviceQuadType() == GrQuad::Type::kPerspective, deviceQuad->w(i)) in write_quad_generic()
69 << If(spec.localQuadType() == GrQuad::Type::kPerspective, localQuad->w(i)); in write_quad_generic()
91 const GrQuad* deviceQuad, in write_2d_color()
92 const GrQuad* localQuad, in write_2d_color()
98 SkASSERT(spec.deviceQuadType() != GrQuad::Type::kPerspective); in write_2d_color()
123 const GrQuad* deviceQuad, in write_2d_uv()
124 const GrQuad* localQuad, in write_2d_uv()
130 SkASSERT(spec.deviceQuadType() != GrQuad::Type::kPerspective); in write_2d_uv()
[all …]
DFillRectOp.cpp35 SkString dump_quad_info(int index, const GrQuad* deviceQuad, in dump_quad_info()
36 const GrQuad* localQuad, const SkPMColor4f& color, in dump_quad_info()
38 GrQuad safeLocal = localQuad ? *localQuad : GrQuad(); in dump_quad_info()
481 DrawQuad quad{GrQuad::MakeFromRect(rect, view), GrQuad(rect), GrQuadAAFlags::kNone}; in MakeNonAARect()
497 DrawQuad quad{GrQuad::MakeFromRect(quads[0].fRect, viewMatrix), in MakeOp()
498 GrQuad::MakeFromRect(quads[0].fRect, quads[0].fLocalMatrix), in MakeOp()
508 quad = {GrQuad::MakeFromRect(quads[i].fRect, viewMatrix), in MakeOp()
509 GrQuad::MakeFromRect(quads[i].fRect, quads[i].fLocalMatrix), in MakeOp()
586 DrawQuad quad = {GrQuad::MakeFromRect(rect, viewMatrix), in GR_DRAW_OP_TEST_DEFINE()
587 GrQuad::MakeFromRect(rect, localMatrix), aaFlags}; in GR_DRAW_OP_TEST_DEFINE()
[all …]
DTextureOp.cpp55 SkSize axis_aligned_quad_size(const GrQuad& quad) { in axis_aligned_quad_size()
56 SkASSERT(quad.quadType() == GrQuad::Type::kAxisAligned); in axis_aligned_quad_size()
65 filter_and_mm_have_effect(const GrQuad& srcQuad, const GrQuad& dstQuad) { in filter_and_mm_have_effect()
67 if (srcQuad.quadType() != GrQuad::Type::kAxisAligned || in filter_and_mm_have_effect()
68 dstQuad.quadType() != GrQuad::Type::kAxisAligned) { in filter_and_mm_have_effect()
171 GrQuad* srcQuad) { in normalize_src_quad()
204 quad.fDevice.quadType() == GrQuad::Type::kAxisAligned && in safe_to_ignore_subset_rect()
205 quad.fLocal.quadType() == GrQuad::Type::kAxisAligned && in safe_to_ignore_subset_rect()
549 quad.fDevice = GrQuad::MakeFromSkQuad(set[q].fDstClipQuad, ctm); in TextureOpImpl()
553 quad.fLocal = GrQuad::MakeFromSkQuad(srcPts, SkMatrix::I()); in TextureOpImpl()
[all …]
/third_party/flutter/skia/src/gpu/
DGrRenderTargetContext.h122 GrQuad::MakeFromRect(rectToDraw, viewMatrix), GrQuad(localRect)); in fillRectToRect()
136 GrQuad::MakeFromRect(rect, viewMatrix), in fillRectWithLocalMatrix()
137 GrQuad::MakeFromRect(rect, localMatrix)); in fillRectWithLocalMatrix()
151 GrQuad::MakeFromRect(rect, viewMatrix), GrQuad(localRect));
171 GrQuad::MakeFromSkQuad(quad, viewMatrix), in fillQuadWithEdgeAA()
172 GrQuad::MakeFromSkQuad(localQuad, SkMatrix::I())); in fillQuadWithEdgeAA()
201 color, mode, aa, edgeAA, GrQuad::MakeFromRect(dstRect, viewMatrix), in drawTexture()
202 GrQuad(srcRect), domain); in drawTexture()
217 aa, edgeAA, GrQuad::MakeFromSkQuad(dstQuad, viewMatrix), in drawTextureQuad()
218 GrQuad::MakeFromSkQuad(srcQuad, SkMatrix::I()), domain); in drawTextureQuad()
[all …]
DGrRenderTargetContextPriv.h74 GrQuad localQuad = localMatrix ? GrQuad::MakeFromRect(rect, *localMatrix) : GrQuad(rect);
77 GrQuad::MakeFromRect(rect, viewMatrix), localQuad, ss);
/third_party/skia/src/gpu/v1/
DSurfaceDrawContext_v1.h186 DrawQuad quad{GrQuad::MakeFromRect(rect, SkMatrix::I()), in fillPixelsWithLocalMatrix()
187 GrQuad::MakeFromRect(rect, localMatrix), GrQuadAAFlags::kNone}; in fillPixelsWithLocalMatrix()
206 DrawQuad quad{GrQuad::MakeFromRect(rect, viewMatrix), GrQuad(localRect), edgeAA};
226 DrawQuad quad{GrQuad::MakeFromSkQuad(points, viewMatrix), in fillQuadWithEdgeAA()
227 GrQuad::MakeFromSkQuad(localPoints, SkMatrix::I()), edgeAA}; in fillQuadWithEdgeAA()
277 DrawQuad quad{GrQuad::MakeFromSkQuad(dstQuad, viewMatrix), in drawTextureQuad()
278 GrQuad::MakeFromSkQuad(srcQuad, SkMatrix::I()), edgeAA}; in drawTextureQuad()
537 DrawQuad quad{GrQuad::MakeFromRect(rect, viewMatrix),
538 localMatrix ? GrQuad::MakeFromRect(rect, *localMatrix) : GrQuad(rect),
/third_party/skia/bench/
DGrQuadBench.cpp45 fQuads[i].setQuadType(fPerspective ? GrQuad::Type::kPerspective in onDelayedSetup()
46 : GrQuad::Type::kGeneral); in onDelayedSetup()
65 GrQuad fQuads[kQuadCount];

12