Home
last modified time | relevance | path

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

/external/skia/src/gpu/
DSkGr.cpp383 GrPaint* grPaint) { in skpaint_to_grpaint_impl() argument
384 grPaint->setAntiAlias(skPaint.isAntiAlias()); in skpaint_to_grpaint_impl()
431 grPaint->addColorFragmentProcessor(shaderFP); in skpaint_to_grpaint_impl()
436 grPaint->addColorFragmentProcessor(GrConstColorProcessor::Create( in skpaint_to_grpaint_impl()
441 grPaint->setColor(SkColorToUnpremulGrColor(skPaint.getColor())); in skpaint_to_grpaint_impl()
442 grPaint->addColorFragmentProcessor(shaderFP); in skpaint_to_grpaint_impl()
460 grPaint->addColorFragmentProcessor(processor); in skpaint_to_grpaint_impl()
463 grPaint->setColor(SkColorToOpaqueGrColor(skPaint.getColor())); in skpaint_to_grpaint_impl()
467 grPaint->addColorFragmentProcessor(GrConstColorProcessor::Create( in skpaint_to_grpaint_impl()
472 grPaint->setColor(SkColorToPremulGrColor(skPaint.getColor())); in skpaint_to_grpaint_impl()
[all …]
DSkGrPriv.h51 GrPaint* grPaint);
56 GrPaint* grPaint);
64 GrPaint* grPaint);
75 GrPaint* grPaint);
82 GrPaint* grPaint) { in SkPaintToGrPaintWithPrimitiveColor() argument
84 false, grPaint); in SkPaintToGrPaintWithPrimitiveColor()
94 GrPaint* grPaint);
DSkGpuDevice.cpp363 GrPaint grPaint; in drawPaint() local
364 if (!SkPaintToGrPaint(this->context(), paint, *draw.fMatrix, &grPaint)) { in drawPaint()
368 fDrawContext->drawPaint(fClip, grPaint, *draw.fMatrix); in drawPaint()
414 GrPaint grPaint; in drawPoints() local
415 if (!SkPaintToGrPaint(this->context(), paint, *draw.fMatrix, &grPaint)) { in drawPoints()
422 fDrawContext->drawPath(fClip, grPaint, *draw.fMatrix, path, strokeInfo); in drawPoints()
434 GrPaint grPaint; in drawPoints() local
435 if (!SkPaintToGrPaint(this->context(), paint, *draw.fMatrix, &grPaint)) { in drawPoints()
440 grPaint, in drawPoints()
487 GrPaint grPaint; in drawRect() local
[all …]
DGrPathRenderingDrawContext.cpp18 void GrPathRenderingDrawContext::drawText(const GrClip& clip, const GrPaint& grPaint, in drawText() argument
32 fStencilAndCoverTextContext->drawText(this->drawingManager()->getContext(), this, clip, grPaint, in drawText()
37 void GrPathRenderingDrawContext::drawPosText(const GrClip& clip, const GrPaint& grPaint, in drawPosText() argument
53 grPaint, skPaint, viewMatrix, this->surfaceProps(), in drawPosText()
DSkGpuDevice_drawTexture.cpp207 GrPaint grPaint; in drawTextureProducerImpl() local
209 &grPaint)) { in drawTextureProducerImpl()
214 fDrawContext->fillRectToRect(clip, grPaint, viewMatrix, clippedDstRect, clippedSrcRect); in drawTextureProducerImpl()
219 fDrawContext->drawRect(clip, grPaint, viewMatrix, clippedDstRect); in drawTextureProducerImpl()
229 &grPaint, in drawTextureProducerImpl()
240 rectPath, &grPaint, viewMatrix, mf, paint.getPathEffect(), in drawTextureProducerImpl()
DGrBlurUtils.cpp337 GrPaint grPaint; in drawPathWithMaskFilter() local
338 if (!SkPaintToGrPaint(context, paint, viewMatrix, &grPaint)) { in drawPathWithMaskFilter()
343 draw_path_with_mask_filter(context, drawContext, clip, &grPaint, viewMatrix, in drawPathWithMaskFilter()
347 drawContext->drawPath(clip, grPaint, viewMatrix, *pathPtr, strokeInfo); in drawPathWithMaskFilter()
DGrTest.cpp155 GrPaint grPaint; in drawTexture() local
158 if (!SkPaintToGrPaint(this->context(), paint, mat, &grPaint)) { in drawTexture()
168 grPaint.addColorTextureProcessor(tex, textureMat); in drawTexture()
171 fDrawContext->drawRect(clip, grPaint, mat, dst); in drawTexture()
DGrDrawContext.cpp108 void GrDrawContext::drawText(const GrClip& clip, const GrPaint& grPaint, in drawText() argument
122 fAtlasTextContext->drawText(fContext, this, clip, grPaint, skPaint, viewMatrix, fSurfaceProps, in drawText()
126 void GrDrawContext::drawPosText(const GrClip& clip, const GrPaint& grPaint, in drawPosText() argument
141 fAtlasTextContext->drawPosText(fContext, this, clip, grPaint, skPaint, viewMatrix, in drawPosText()
/external/skia/src/gpu/text/
DGrAtlasTextContext.cpp114 GrPaint grPaint; in drawTextBlob() local
115 if (!SkPaintToGrPaint(context, skPaint, viewMatrix, &grPaint)) { in drawTextBlob()
120 if (cacheBlob->mustRegenerate(skPaint, grPaint.getColor(), blurRec, viewMatrix, x, y)) { in drawTextBlob()
127 *context->caps()->shaderCaps(), skPaint, grPaint.getColor(), in drawTextBlob()
141 grPaint.getColor(), viewMatrix, props, in drawTextBlob()
153 *context->caps()->shaderCaps(), skPaint, grPaint.getColor(), in drawTextBlob()
159 grPaint, drawFilter, clip, viewMatrix, clipBounds, x, y); in drawTextBlob()
384 GrPaint grPaint; in DRAW_BATCH_TEST_DEFINE() local
385 if (!SkPaintToGrPaint(context, skPaint, viewMatrix, &grPaint)) { in DRAW_BATCH_TEST_DEFINE()
406 *context->caps()->shaderCaps(), grPaint, skPaint, in DRAW_BATCH_TEST_DEFINE()
DGrAtlasTextBlob.cpp408 const GrPaint& grPaint, in flushCached() argument
416 GrPipelineBuilder pipelineBuilder(grPaint, dc->accessRenderTarget(), clip); in flushCached()
418 GrColor color = grPaint.getColor(); in flushCached()
440 const GrPaint& grPaint, in flushThrowaway() argument
445 GrPipelineBuilder pipelineBuilder(grPaint, dc->accessRenderTarget(), clip); in flushThrowaway()
447 GrColor color = grPaint.getColor(); in flushThrowaway()
DGrStencilAndCoverTextContext.cpp164 GrPaint grPaint; in uncachedDrawTextBlob() local
165 if (!SkPaintToGrPaint(context, runPaint, viewMatrix, &grPaint)) { in uncachedDrawTextBlob()
171 this->drawText(context, dc, clip, grPaint, runPaint, viewMatrix, props, in uncachedDrawTextBlob()
176 this->drawPosText(context, dc, clip, grPaint, runPaint, viewMatrix, props, in uncachedDrawTextBlob()
182 this->drawPosText(context, dc, clip, grPaint, runPaint, viewMatrix, props, in uncachedDrawTextBlob()
DGrAtlasTextBlob.h186 const GrPaint& grPaint,
199 const GrPaint& grPaint,
/external/skia/gm/
Dconstcolorprocessor.cpp101 GrPaint grPaint; in onDraw() local
108 SkAssertResult(SkPaintToGrPaint(context, skPaint, viewMatrix, &grPaint)); in onDraw()
115 GrPipelineBuilder pipelineBuilder(grPaint, rt, clip); in onDraw()
119 GrRectBatchFactory::CreateNonAAFill(grPaint.getColor(), viewMatrix, in onDraw()
/external/skia/src/effects/
DSkAlphaThresholdFilter.cpp312 GrPaint grPaint; in asFragmentProcessor() local
313 grPaint.setPorterDuffXPFactory(SkXfermode::kSrc_Mode); in asFragmentProcessor()
320 drawContext->drawRect(clip, grPaint, inMatrix, rect); in asFragmentProcessor()
/external/skia/experimental/SkPerlinNoiseShader2/
DSkPerlinNoiseShader2.cpp726 GrPaint grPaint; in TestCreate() local
1131 GrPaint grPaint; in TestCreate() local