Home
last modified time | relevance | path

Searched refs:grPaint (Results 1 – 25 of 34) sorted by relevance

12

/external/skia/src/gpu/
DSkGpuDevice.cpp328 GrPaint grPaint; local
330 this->asMatrixProvider(), &grPaint)) {
334 fSurfaceDrawContext->drawPaint(this->clip(), std::move(grPaint), this->localToDevice());
362 GrPaint grPaint; local
364 this->asMatrixProvider(), &grPaint)) {
371 fSurfaceDrawContext->drawPath(this->clip(), std::move(grPaint), aa, this->localToDevice(),
405 GrPaint grPaint; local
407 *matrixProvider, &grPaint)) {
415 fSurfaceDrawContext->drawVertices(this->clip(), std::move(grPaint), *matrixProvider,
436 GrPaint grPaint; local
[all …]
DSkGr.cpp333 GrPaint* grPaint) { in skpaint_to_grpaint_impl() argument
383 grPaint->setColor4f(origColor.premul()); in skpaint_to_grpaint_impl()
393 grPaint->setColor4f(opaqueColor); in skpaint_to_grpaint_impl()
405 grPaint->setColor4f(origColor.premul()); in skpaint_to_grpaint_impl()
414 grPaint->setColor4f(colorFilter->filterColor4f(origColor, dstCS, dstCS).premul()); in skpaint_to_grpaint_impl()
430 grPaint->setCoverageFragmentProcessor(std::move(mfFP)); in skpaint_to_grpaint_impl()
436 SkASSERT(!grPaint->getXPFactory()); in skpaint_to_grpaint_impl()
438 grPaint->setXPFactory(SkBlendMode_AsXPFactory(skPaint.getBlendMode())); in skpaint_to_grpaint_impl()
453 auto color = grPaint->getColor4f(); in skpaint_to_grpaint_impl()
454 grPaint->setColor4f({SkTPin(color.fR, 0.f, 1.f), in skpaint_to_grpaint_impl()
[all …]
DSkGr.h90 GrPaint* grPaint);
97 GrPaint* grPaint);
107 GrPaint* grPaint);
116 GrPaint* grPaint);
126 GrPaint* grPaint);
136 GrPaint* grPaint) { in SkPaintToGrPaintWithPrimitiveColor() argument
138 SkBlendMode::kDst, grPaint); in SkPaintToGrPaintWithPrimitiveColor()
149 GrPaint* grPaint);
/external/skqp/src/gpu/
DSkGr.cpp378 GrPaint* grPaint) { in skpaint_to_grpaint_impl() argument
419 grPaint->addColorFragmentProcessor(std::move(shaderFP)); in skpaint_to_grpaint_impl()
427 grPaint->addColorFragmentProcessor(GrConstColorProcessor::Make( in skpaint_to_grpaint_impl()
434 grPaint->setColor4f(origColorAsPM); in skpaint_to_grpaint_impl()
435 grPaint->addColorFragmentProcessor(std::move(shaderFP)); in skpaint_to_grpaint_impl()
447 grPaint->addColorFragmentProcessor(std::move(processor)); in skpaint_to_grpaint_impl()
450 grPaint->setColor4f(opaqueColor); in skpaint_to_grpaint_impl()
457 grPaint->addColorFragmentProcessor(GrConstColorProcessor::Make( in skpaint_to_grpaint_impl()
463 grPaint->setColor4f(origColor.premul()); in skpaint_to_grpaint_impl()
471 grPaint->setColor4f( in skpaint_to_grpaint_impl()
[all …]
DSkGpuDevice.cpp286 GrPaint grPaint; in drawPaint() local
288 this->ctm(), &grPaint)) { in drawPaint()
292 fRenderTargetContext->drawPaint(this->clip(), std::move(grPaint), this->ctm()); in drawPaint()
319 GrPaint grPaint; in drawPoints() local
321 this->ctm(), &grPaint)) { in drawPoints()
328 fRenderTargetContext->drawPath(this->clip(), std::move(grPaint), GrAA(paint.isAntiAlias()), in drawPoints()
364 GrPaint grPaint; in drawPoints() local
366 *viewMatrix, &grPaint)) { in drawPoints()
374 fRenderTargetContext->drawVertices(this->clip(), std::move(grPaint), *viewMatrix, in drawPoints()
395 GrPaint grPaint; in drawRect() local
[all …]
DSkGr.h76 GrPaint* grPaint);
82 GrPaint* grPaint);
91 GrPaint* grPaint);
100 GrPaint* grPaint);
108 const SkPaint& skPaint, GrPaint* grPaint) { in SkPaintToGrPaintWithPrimitiveColor() argument
110 SkBlendMode::kDst, grPaint); in SkPaintToGrPaintWithPrimitiveColor()
121 GrPaint* grPaint);
DSkGpuDevice_drawTexture.cpp301 GrPaint grPaint; in drawTextureProducerImpl() local
304 &grPaint)) { in drawTextureProducerImpl()
309 fRenderTargetContext->fillRectToRect(this->clip(), std::move(grPaint), aa, viewMatrix, in drawTextureProducerImpl()
315 fRenderTargetContext->drawRect(this->clip(), std::move(grPaint), aa, viewMatrix, in drawTextureProducerImpl()
323 shape, std::move(grPaint), viewMatrix, mf); in drawTextureProducerImpl()
DGrBlurUtils.cpp454 GrPaint grPaint; in drawShapeWithMaskFilter() local
456 &grPaint)) { in drawShapeWithMaskFilter()
463 draw_shape_with_mask_filter(context, renderTargetContext, clip, std::move(grPaint), in drawShapeWithMaskFilter()
467 renderTargetContext->drawShape(clip, std::move(grPaint), aa, viewMatrix, shape); in drawShapeWithMaskFilter()
/external/skia/gm/
Daarecteffect.cpp80 GrPaint grPaint; in onDraw() local
81 grPaint.setColor4f({ 0, 0, 0, 1.f }); in onDraw()
82 grPaint.setXPFactory(GrPorterDuffXPFactory::Get(SkBlendMode::kSrc)); in onDraw()
83 grPaint.setCoverageFragmentProcessor(std::move(fp)); in onDraw()
85 auto op = sk_gpu_test::test_ops::MakeRect(context, std::move(grPaint), drawRect); in onDraw()
Dbigrrectaaeffect.cpp97 GrPaint grPaint; in onDraw() local
98 grPaint.setColor4f({ 0, 0, 0, 1.f }); in onDraw()
99 grPaint.setXPFactory(GrPorterDuffXPFactory::Get(SkBlendMode::kSrc)); in onDraw()
100 grPaint.setCoverageFragmentProcessor(std::move(fp)); in onDraw()
106 context, std::move(grPaint), SkMatrix::I(), bounds)); in onDraw()
Dconvexpolyeffect.cpp115 GrPaint grPaint; in onDraw() local
116 grPaint.setColor4f({ 0, 0, 0, 1.f }); in onDraw()
117 grPaint.setXPFactory(GrPorterDuffXPFactory::Get(SkBlendMode::kSrc)); in onDraw()
118 grPaint.setCoverageFragmentProcessor(std::move(fp)); in onDraw()
120 auto op = sk_gpu_test::test_ops::MakeRect(context, std::move(grPaint), rect); in onDraw()
Dswizzle.cpp35 GrPaint grPaint; variable
36 grPaint.setColorFragmentProcessor(std::move(fp));
38 rtCtx->addDrawOp(GrFillRectOp::MakeNonAARect(ctx, std::move(grPaint), SkMatrix(), bounds));
Drrects.cpp126 GrPaint grPaint; in onDraw() local
127 grPaint.setXPFactory(GrPorterDuffXPFactory::Get(SkBlendMode::kSrc)); in onDraw()
128 grPaint.setCoverageFragmentProcessor(std::move(fp)); in onDraw()
129 grPaint.setColor4f({ 0, 0, 0, 1.f }); in onDraw()
135 context, std::move(grPaint), SkMatrix::I(), bounds)); in onDraw()
Dfpcoordinateoverride.cpp88 GrPaint grPaint; variable
89 grPaint.setCoverageFragmentProcessor(std::move(fp));
91 rtCtx->addDrawOp(GrFillRectOp::MakeNonAARect(ctx, std::move(grPaint), SkMatrix::I(), bounds));
Dyuvtorgbsubset.cpp149 GrPaint grPaint; in onDraw() local
150 grPaint.setColorFragmentProcessor(std::move(fp)); in onDraw()
152 nullptr, std::move(grPaint), GrAA::kYes, ctm, rect); in onDraw()
Ddrawquadset.cpp88 GrPaint grPaint; in draw_gradient_tiles() local
89 SkPaintToGrPaint(context, sdc->colorInfo(), paint, matrixProvider, &grPaint); in draw_gradient_tiles()
90 sdc->fillRectWithEdgeAA(nullptr, std::move(grPaint), GrAA::kYes, in draw_gradient_tiles()
/external/skqp/gm/
Dconvexpolyeffect.cpp212 GrPaint grPaint; in onDraw() local
213 grPaint.setColor4f({ 0, 0, 0, 1.f }); in onDraw()
214 grPaint.setXPFactory(GrPorterDuffXPFactory::Get(SkBlendMode::kSrc)); in onDraw()
215 grPaint.addCoverageFragmentProcessor(std::move(fp)); in onDraw()
218 PolyBoundsOp::Make(context, std::move(grPaint), p.getBounds()); in onDraw()
252 GrPaint grPaint; in onDraw() local
253 grPaint.setColor4f({ 0, 0, 0, 1.f }); in onDraw()
254 grPaint.setXPFactory(GrPorterDuffXPFactory::Get(SkBlendMode::kSrc)); in onDraw()
255 grPaint.addCoverageFragmentProcessor(std::move(fp)); in onDraw()
257 std::unique_ptr<GrDrawOp> op = PolyBoundsOp::Make(context, std::move(grPaint), in onDraw()
Dyuvtorgbeffect.cpp127 GrPaint grPaint; in onDraw() local
128 grPaint.setXPFactory(GrPorterDuffXPFactory::Get(SkBlendMode::kSrc)); in onDraw()
129 grPaint.addColorFragmentProcessor(std::move(fp)); in onDraw()
133 GrFillRectOp::Make(context, std::move(grPaint), GrAAType::kNone, in onDraw()
245 GrPaint grPaint; in onDraw() local
246 grPaint.setXPFactory(GrPorterDuffXPFactory::Get(SkBlendMode::kSrc)); in onDraw()
253 grPaint.addColorFragmentProcessor(std::move(fp)); in onDraw()
254 std::unique_ptr<GrDrawOp> op(GrFillRectOp::Make(context, std::move(grPaint), in onDraw()
Dbigrrectaaeffect.cpp89 GrPaint grPaint; in onDraw() local
90 grPaint.setColor4f({ 0, 0, 0, 1.f }); in onDraw()
91 grPaint.setXPFactory(GrPorterDuffXPFactory::Get(SkBlendMode::kSrc)); in onDraw()
92 grPaint.addCoverageFragmentProcessor(std::move(fp)); in onDraw()
98 GrFillRectOp::Make(context, std::move(grPaint), GrAAType::kNone, in onDraw()
Drrects.cpp111 GrPaint grPaint; in onDraw() local
112 grPaint.setXPFactory(GrPorterDuffXPFactory::Get(SkBlendMode::kSrc)); in onDraw()
113 grPaint.addCoverageFragmentProcessor(std::move(fp)); in onDraw()
114 grPaint.setColor4f({ 0, 0, 0, 1.f }); in onDraw()
120 GrFillRectOp::Make(context, std::move(grPaint), GrAAType::kNone, in onDraw()
Dconstcolorprocessor.cpp95 GrPaint grPaint; in onDraw() local
103 skPaint, viewMatrix, &grPaint)); in onDraw()
109 grPaint.addColorFragmentProcessor(std::move(fp)); in onDraw()
111 GrFillRectOp::Make(context, std::move(grPaint), GrAAType::kNone, in onDraw()
Dtexturedomaineffect.cpp142 GrPaint grPaint; in onDraw() local
143 grPaint.setXPFactory(GrPorterDuffXPFactory::Get(SkBlendMode::kSrc)); in onDraw()
153 grPaint.addColorFragmentProcessor(std::move(fp)); in onDraw()
155 GrFillRectOp::Make(context, std::move(grPaint), GrAAType::kNone, in onDraw()
Ddrawquadset.cpp65 GrPaint grPaint; in draw_gradient_tiles() local
67 &grPaint); in draw_gradient_tiles()
68 rtc->fillRectWithEdgeAA(GrNoClip(), std::move(grPaint), in draw_gradient_tiles()
/external/skqp/src/android/
DSkAndroidFrameworkUtils.cpp40 GrPaint grPaint; in clipWithStencil() local
41 grPaint.setXPFactory(GrDisableColorXPFactory::Get()); in clipWithStencil()
52 rtc->drawRegion(noClip, std::move(grPaint), GrAA::kNo, SkMatrix::I(), clipRegion, in clipWithStencil()
/external/skia/src/gpu/text/
DGrTextBlob.cpp77 GrPaint* grPaint) { in calculate_colors() argument
81 SkPaintToGrPaintWithPrimitiveColor(rContext, colorInfo, paint, matrix, grPaint); in calculate_colors()
84 SkPaintToGrPaint(rContext, colorInfo, paint, matrix, grPaint); in calculate_colors()
85 return grPaint->getColor4f(); in calculate_colors()
666 GrPaint grPaint; in makeAtlasTextOp() local
668 calculate_colors(sdc, paint, viewMatrix, fMaskFormat, &grPaint); in makeAtlasTextOp()
686 std::move(grPaint)); in makeAtlasTextOp()
961 GrPaint grPaint; in makeAtlasTextOp() local
962 SkPMColor4f drawingColor = calculate_colors(sdc, paint, viewMatrix, fMaskFormat, &grPaint); in makeAtlasTextOp()
981 std::move(grPaint)); in makeAtlasTextOp()
[all …]

12