/external/skia/tests/ |
D | ClearTest.cpp | 64 dc->reset(context->drawContext(rt)); in reset_dc() 73 SkAutoTUnref<GrDrawContext> drawContext; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 98 if (!reset_dc(&drawContext, &rtKeepAlive, context, kW, kH)) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 103 drawContext->clear(&fullRect, kColor1, false); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 104 if (!check_rect(drawContext, fullRect, kColor1, &actualValue, &failX, &failY)) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 109 if (!reset_dc(&drawContext, &rtKeepAlive, context, kW, kH)) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 114 drawContext->clear(&fullRect, kColor1, false); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 115 drawContext->clear(&fullRect, kColor1, false); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 116 if (!check_rect(drawContext, fullRect, kColor1, &actualValue, &failX, &failY)) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 121 if (!reset_dc(&drawContext, &rtKeepAlive, context, kW, kH)) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all …]
|
D | GLProgramsTest.cpp | 358 SkAutoTUnref<GrDrawContext> drawContext(context->drawContext(rt)); in ProgramUnitTest() local 359 if (!drawContext) { in ProgramUnitTest() 364 drawContext->internal_drawBatch(pipelineBuilder, batch); in ProgramUnitTest() 395 SkAutoTUnref<GrDrawContext> drawContext(context->drawContext(rt)); in ProgramUnitTest() local 396 if (!drawContext) { in ProgramUnitTest() 401 drawContext->internal_drawBatch(builder, batch); in ProgramUnitTest()
|
/external/skia/src/gpu/ |
D | GrBlurUtils.cpp | 28 static bool draw_mask(GrDrawContext* drawContext, in draw_mask() argument 45 drawContext->fillRectWithLocalMatrix(clip, *grp, SkMatrix::I(), maskRect, inverse); in draw_mask() 49 static bool sw_draw_with_mask_filter(GrDrawContext* drawContext, in sw_draw_with_mask_filter() argument 92 return draw_mask(drawContext, clipData, viewMatrix, maskRect, grp, texture); in sw_draw_with_mask_filter() 127 SkAutoTUnref<GrDrawContext> drawContext(context->drawContext(mask->asRenderTarget())); in create_mask_GPU() local 128 if (!drawContext) { in create_mask_GPU() 132 drawContext->clear(nullptr, 0x0, true); in create_mask_GPU() 145 drawContext->drawPath(clip, tempPaint, translate, devPath, strokeInfo); in create_mask_GPU() 150 GrDrawContext* drawContext, in draw_path_with_mask_filter() argument 162 clip.getConservativeBounds(drawContext->width(), drawContext->height(), &clipBounds); in draw_path_with_mask_filter() [all …]
|
D | GrRenderTarget.cpp | 33 SkAutoTUnref<GrDrawContext> drawContext(context->drawContext(this)); in discard() local 34 if (!drawContext) { in discard() 38 drawContext->discard(); in discard()
|
D | GrContext.cpp | 338 SkAutoTUnref<GrDrawContext> drawContext(this->drawContext(renderTarget)); in writeSurfacePixels() local 339 if (!drawContext) { in writeSurfacePixels() 346 drawContext->drawRect(GrClip::WideOpen(), paint, matrix, rect, nullptr); in writeSurfacePixels() 456 SkAutoTUnref<GrDrawContext> drawContext(this->drawContext(temp->asRenderTarget())); in readSurfacePixels() local 457 drawContext->drawRect(GrClip::WideOpen(), paint, SkMatrix::I(), rect, nullptr); in readSurfacePixels() 541 SkAutoTUnref<GrDrawContext> drawContext(this->drawContext(dst->asRenderTarget())); in copySurface() local 542 if (!drawContext) { in copySurface() 546 if (!drawContext->copySurface(src, srcRect, dstPoint)) { in copySurface() 580 GrDrawContext* GrContext::drawContext(GrRenderTarget* rt, const SkSurfaceProps* surfaceProps) { in drawContext() function in GrContext 582 return fDrawingManager->drawContext(rt, surfaceProps); in drawContext()
|
D | GrYUVProvider.cpp | 135 SkAutoTUnref<GrDrawContext> drawContext(ctx->drawContext(renderTarget)); in refAsTexture() local 136 if (!drawContext) { in refAsTexture() 140 drawContext->drawRect(GrClip::WideOpen(), paint, SkMatrix::I(), r); in refAsTexture()
|
D | GrTextureToYUVPlanes.cpp | 120 SkAutoTUnref<GrDrawContext> dc(context->drawContext(yuvTex->asRenderTarget())); in GrTextureToYUVPlanes() 131 SkAutoTUnref<GrDrawContext> dc(context->drawContext(yTex->asRenderTarget())); in GrTextureToYUVPlanes() 140 dc.reset(context->drawContext(uvTex->asRenderTarget())); in GrTextureToYUVPlanes() 150 dc.reset(context->drawContext(uTex->asRenderTarget())); in GrTextureToYUVPlanes() 158 dc.reset(context->drawContext(vTex->asRenderTarget())); in GrTextureToYUVPlanes()
|
/external/skia/src/effects/ |
D | SkGpuBlurUtils.cpp | 48 static void convolve_gaussian_1d(GrDrawContext* drawContext, in convolve_gaussian_1d() argument 64 drawContext->fillRectWithLocalMatrix(clip, paint, SkMatrix::I(), dstRect, localMatrix); in convolve_gaussian_1d() 67 static void convolve_gaussian_2d(GrDrawContext* drawContext, in convolve_gaussian_2d() argument 94 drawContext->fillRectWithLocalMatrix(clip, paint, SkMatrix::I(), dstRect, localMatrix); in convolve_gaussian_2d() 97 static void convolve_gaussian(GrDrawContext* drawContext, in convolve_gaussian() argument 109 convolve_gaussian_1d(drawContext, clip, dstRect, srcOffset, texture, in convolve_gaussian() 143 drawContext->clear(&topRect, 0, false); in convolve_gaussian() 147 drawContext->clear(&bottomRect, 0, false); in convolve_gaussian() 151 convolve_gaussian_1d(drawContext, clip, dstRect, srcOffset, texture, in convolve_gaussian() 155 convolve_gaussian_1d(drawContext, clip, leftRect, srcOffset, texture, in convolve_gaussian() [all …]
|
D | SkMorphologyImageFilter.cpp | 451 void apply_morphology_rect(GrDrawContext* drawContext, in apply_morphology_rect() argument 467 drawContext->fillRectToRect(clip, paint, SkMatrix::I(), SkRect::Make(dstRect), in apply_morphology_rect() 471 void apply_morphology_rect_no_bounds(GrDrawContext* drawContext, in apply_morphology_rect_no_bounds() argument 485 drawContext->fillRectToRect(clip, paint, SkMatrix::I(), SkRect::Make(dstRect), in apply_morphology_rect_no_bounds() 489 void apply_morphology_pass(GrDrawContext* drawContext, in apply_morphology_pass() argument 522 apply_morphology_rect(drawContext, clip, texture, srcRect, dstRect, radius, in apply_morphology_pass() 526 apply_morphology_rect(drawContext, clip, texture, lowerSrcRect, lowerDstRect, radius, in apply_morphology_pass() 528 apply_morphology_rect(drawContext, clip, texture, upperSrcRect, upperDstRect, radius, in apply_morphology_pass() 530 apply_morphology_rect_no_bounds(drawContext, clip, texture, middleSrcRect, middleDstRect, in apply_morphology_pass() 562 context->drawContext(scratch->asRenderTarget())); in apply_morphology() [all …]
|
D | SkXfermodeImageFilter.cpp | 234 SkAutoTUnref<GrDrawContext> drawContext(context->drawContext(dst->asRenderTarget())); in filterImageGPUDeprecated() local 235 if (!drawContext) { in filterImageGPUDeprecated() 241 drawContext->drawRect(GrClip::WideOpen(), paint, matrix, SkRect::Make(bounds)); in filterImageGPUDeprecated()
|
D | SkAlphaThresholdFilter.cpp | 309 SkAutoTUnref<GrDrawContext> drawContext( in asFragmentProcessor() local 310 context->drawContext(maskTexture->asRenderTarget())); in asFragmentProcessor() 311 if (drawContext) { in asFragmentProcessor() 315 drawContext->clear(nullptr, 0x0, true); in asFragmentProcessor() 320 drawContext->drawRect(clip, grPaint, inMatrix, rect); in asFragmentProcessor()
|
D | SkBlurMaskFilter.cpp | 54 GrDrawContext* drawContext, 61 GrDrawContext* drawContext, 847 GrDrawContext* drawContext, in directFilterMaskGPU() argument 853 SkASSERT(drawContext); in directFilterMaskGPU() 895 drawContext->fillRectWithLocalMatrix(clip, *grp, SkMatrix::I(), rect, inverse); in directFilterMaskGPU() 1145 GrDrawContext* drawContext, in directFilterRRectMaskGPU() argument 1151 SkASSERT(drawContext); in directFilterRRectMaskGPU() 1180 drawContext->fillRectWithLocalMatrix(clip, *grp, SkMatrix::I(), proxyRect, inverse); in directFilterRRectMaskGPU() 1268 SkAutoTUnref<GrDrawContext> drawContext(context->drawContext((*result)->asRenderTarget())); in filterMaskGPU() local 1269 if (!drawContext) { in filterMaskGPU() [all …]
|
D | SkLightingImageFilter.cpp | 367 void drawRect(GrDrawContext* drawContext, 380 void SkLightingImageFilterInternal::drawRect(GrDrawContext* drawContext, in drawRect() argument 393 drawContext->fillRectToRect(clip, paint, SkMatrix::I(), dstRect, srcRect); in drawRect() 447 SkAutoTUnref<GrDrawContext> drawContext(context->drawContext(dst->asRenderTarget())); in filterImageGPUDeprecated() local 448 if (!drawContext) { in filterImageGPUDeprecated() 453 this->drawRect(drawContext, srcTexture, matrix, clip, topLeft, kTopLeft_BoundaryMode, in filterImageGPUDeprecated() 455 this->drawRect(drawContext, srcTexture, matrix, clip, top, kTop_BoundaryMode, in filterImageGPUDeprecated() 457 this->drawRect(drawContext, srcTexture, matrix, clip, topRight, kTopRight_BoundaryMode, in filterImageGPUDeprecated() 459 this->drawRect(drawContext, srcTexture, matrix, clip, left, kLeft_BoundaryMode, in filterImageGPUDeprecated() 461 this->drawRect(drawContext, srcTexture, matrix, clip, interior, kInterior_BoundaryMode, in filterImageGPUDeprecated() [all …]
|
/external/skia/gm/ |
D | texdata.cpp | 25 SkAutoTUnref<GrDrawContext> drawContext(ctx ? ctx->drawContext(target) : nullptr); variable 26 if (drawContext && target) { 99 drawContext->drawRect(clip, paint, vm, SkRect::MakeWH(2*S, 2*S)); 113 drawContext->drawRect(clip, paint, vm, SkRect::MakeWH(2*S, 2*S));
|
D | beziereffects.cpp | 133 SkAutoTUnref<GrDrawContext> drawContext(context->drawContext(rt)); in onDraw() local 134 if (!drawContext) { in onDraw() 229 drawContext->internal_drawBatch(pipelineBuilder, batch); in onDraw() 276 SkAutoTUnref<GrDrawContext> drawContext(context->drawContext(rt)); in onDraw() local 277 if (!drawContext) { in onDraw() 370 drawContext->internal_drawBatch(pipelineBuilder, batch); in onDraw() 515 SkAutoTUnref<GrDrawContext> drawContext(context->drawContext(rt)); in onDraw() local 516 if (!drawContext) { in onDraw() 606 drawContext->internal_drawBatch(pipelineBuilder, batch); in onDraw()
|
D | bigrrectaaeffect.cpp | 60 SkAutoTUnref<GrDrawContext> drawContext(context->drawContext(rt)); in onDraw() local 61 if (!drawContext) { in onDraw() 102 drawContext->internal_drawBatch(pipelineBuilder, batch); in onDraw()
|
D | yuvtorgbeffect.cpp | 83 SkAutoTUnref<GrDrawContext> drawContext(context->drawContext(rt)); in onDraw() local 84 if (!drawContext) { in onDraw() 135 drawContext->internal_drawBatch(pipelineBuilder, batch); in onDraw()
|
D | rrects.cpp | 70 SkAutoTUnref<GrDrawContext> drawContext; in onDraw() local 77 drawContext.reset(context->drawContext(rt)); in onDraw() 78 if (!drawContext) { in onDraw() 140 drawContext->internal_drawBatch(pipelineBuilder, batch); in onDraw()
|
D | texturedomaineffect.cpp | 84 SkAutoTUnref<GrDrawContext> drawContext(context->drawContext(rt)); in onDraw() local 85 if (!drawContext) { in onDraw() 138 drawContext->internal_drawBatch(pipelineBuilder, batch); in onDraw()
|
D | constcolorprocessor.cpp | 61 SkAutoTUnref<GrDrawContext> drawContext(context->drawContext(rt)); in onDraw() local 62 if (!drawContext) { in onDraw() 121 drawContext->internal_drawBatch(pipelineBuilder, batch); in onDraw()
|
D | convexpolyeffect.cpp | 166 SkAutoTUnref<GrDrawContext> drawContext(context->drawContext(rt)); in onDraw() local 167 if (!drawContext) { in onDraw() 208 drawContext->internal_drawBatch(pipelineBuilder, batch); in onDraw() 255 drawContext->internal_drawBatch(pipelineBuilder, batch); in onDraw()
|
/external/skia/include/core/ |
D | SkMaskFilter.h | 115 GrDrawContext* drawContext, 126 GrDrawContext* drawContext,
|
/external/deqp/framework/referencerenderer/ |
D | rrRenderer.cpp | 930 void generatePrimitiveIDs (ContainerType& list, DrawContext& drawContext) in generatePrimitiveIDs() argument 933 generatePrimitiveIDs(*it, drawContext.primitiveID++); in generatePrimitiveIDs() 1405 …td::vector<typename PrimitiveTypeTraits<DrawPrimitiveType>::Type>& input, DrawContext& drawContext) in drawWithGeometryShader() argument 1418 primitives[primitiveNdx].primitiveIDIn = drawContext.primitiveID++; in drawWithGeometryShader() 1473 … program, VertexPacket* const* vertices, int numVertices, DrawContext& drawContext, VertexPacketAl… in drawAsPrimitives() argument 1489 …wWithGeometryShader<DrawPrimitiveType>(state, renderTarget, program, inputPrimitives, drawContext); in drawAsPrimitives() 1502 generatePrimitiveIDs(basePrimitives, drawContext); in drawAsPrimitives() 1770 DrawContext drawContext; in drawInstanced() local 1775 drawContext.primitiveID = 0; in drawInstanced() 1812 …nd.renderTarget, command.program, &vertexPackets[0], numVertexPackets, drawContext, vpalloc); brea… in drawInstanced() [all …]
|
/external/skia/src/image/ |
D | SkImage_Gpu.cpp | 271 SkAutoTUnref<GrDrawContext> drawContext(ctx->drawContext(dst->asRenderTarget())); in NewFromYUVTexturesCopy() local 272 if (!drawContext) { in NewFromYUVTexturesCopy() 276 drawContext->drawRect(GrClip::WideOpen(), paint, SkMatrix::I(), rect); in NewFromYUVTexturesCopy()
|
/external/skia/src/gpu/effects/ |
D | GrConfigConversionEffect.cpp | 228 context->drawContext(readTex->asRenderTarget())); in TestForPreservingPMConversions() 246 context->drawContext(tempTex->asRenderTarget())); in TestForPreservingPMConversions() 260 readDrawContext.reset(context->drawContext(readTex->asRenderTarget())); in TestForPreservingPMConversions()
|