Lines Matching refs:sdc
27 static void draw_paint_with_aa(skgpu::v1::SurfaceDrawContext* sdc, in draw_paint_with_aa() argument
33 sdc->drawRect(nullptr, std::move(paint), GrAA::kYes, SkMatrix::I(), in draw_paint_with_aa()
37 static void draw_paint_with_dmsaa(skgpu::v1::SurfaceDrawContext* sdc, in draw_paint_with_dmsaa() argument
50 sdc->drawVertices(nullptr, std::move(paint), SkSimpleMatrixProvider(SkMatrix::I()), vertices); in draw_paint_with_dmsaa()
64 skgpu::v1::SurfaceDrawContext* sdc, in check_sdc_color() argument
69 sdc->readPixels(ctx, pixmap, {0, 0}); in check_sdc_color()
89 auto sdc = skgpu::v1::SurfaceDrawContext::Make(dContext, GrColorType::kRGBA_8888, nullptr, variable
94 draw_paint_with_dmsaa(sdc.get(), SK_PMColor4fTRANSPARENT, SkBlendMode::kSrc);
95 check_sdc_color(reporter, sdc.get(), dContext, SK_PMColor4fTRANSPARENT);
98 sdc->clear(kTransYellow);
101 check_sdc_color(reporter, sdc.get(), dContext, kTransYellow);
106 draw_paint_with_dmsaa(sdc.get(), kTransCyan, SkBlendMode::kSrcOver);
109 check_sdc_color(reporter, sdc.get(), dContext, dstColor);
120 auto sdc = skgpu::v1::SurfaceDrawContext::Make(dContext, GrColorType::kRGBA_8888, nullptr, variable
125 draw_paint_with_dmsaa(sdc.get(), SK_PMColor4fTRANSPARENT, SkBlendMode::kSrc);
126 check_sdc_color(reporter, sdc.get(), dContext, SK_PMColor4fTRANSPARENT);
128 sdc->clear(SK_PMColor4fWHITE);
131 draw_paint_with_dmsaa(sdc.get(), kTransYellow, SkBlendMode::kDarken);
134 draw_paint_with_dmsaa(sdc.get(), kTransCyan, SkBlendMode::kDarken);
137 check_sdc_color(reporter, sdc.get(), dContext, dstColor);
144 auto sdc = skgpu::v1::SurfaceDrawContext::Make(dContext, GrColorType::kRGBA_8888, nullptr, variable
149 draw_paint_with_dmsaa(sdc.get(), SK_PMColor4fTRANSPARENT, SkBlendMode::kSrc);
150 check_sdc_color(reporter, sdc.get(), dContext, SK_PMColor4fTRANSPARENT);
152 sdc->clear(SK_PMColor4fWHITE);
155 draw_paint_with_dmsaa(sdc.get(), kTransYellow, SkBlendMode::kDarken);
159 draw_paint_with_aa(sdc.get(), kTransCyan, SkBlendMode::kDarken);
162 check_sdc_color(reporter, sdc.get(), dContext, dstColor);
169 auto sdc = skgpu::v1::SurfaceDrawContext::Make(dContext, GrColorType::kRGBA_8888, nullptr, variable
174 draw_paint_with_dmsaa(sdc.get(), SK_PMColor4fTRANSPARENT, SkBlendMode::kSrc);
175 check_sdc_color(reporter, sdc.get(), dContext, SK_PMColor4fTRANSPARENT);
177 sdc->clear(SK_PMColor4fWHITE);
182 draw_paint_with_aa(sdc.get(), kTransYellow, SkBlendMode::kDarken);
187 draw_paint_with_dmsaa(sdc.get(), kTransCyan, SkBlendMode::kSrcOver);
190 check_sdc_color(reporter, sdc.get(), dContext, dstColor);