Home
last modified time | relevance | path

Searched refs:drawContext (Results 1 – 25 of 39) sorted by relevance

12

/external/skia/tests/
DClearTest.cpp64 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 …]
DGLProgramsTest.cpp358 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/
DGrBlurUtils.cpp28 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 …]
DGrRenderTarget.cpp33 SkAutoTUnref<GrDrawContext> drawContext(context->drawContext(this)); in discard() local
34 if (!drawContext) { in discard()
38 drawContext->discard(); in discard()
DGrContext.cpp338 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()
DGrYUVProvider.cpp135 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()
DGrTextureToYUVPlanes.cpp120 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/
DSkGpuBlurUtils.cpp48 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 …]
DSkMorphologyImageFilter.cpp451 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 …]
DSkXfermodeImageFilter.cpp234 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()
DSkAlphaThresholdFilter.cpp309 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()
DSkBlurMaskFilter.cpp54 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 …]
DSkLightingImageFilter.cpp367 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/
Dtexdata.cpp25 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));
Dbeziereffects.cpp133 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()
Dbigrrectaaeffect.cpp60 SkAutoTUnref<GrDrawContext> drawContext(context->drawContext(rt)); in onDraw() local
61 if (!drawContext) { in onDraw()
102 drawContext->internal_drawBatch(pipelineBuilder, batch); in onDraw()
Dyuvtorgbeffect.cpp83 SkAutoTUnref<GrDrawContext> drawContext(context->drawContext(rt)); in onDraw() local
84 if (!drawContext) { in onDraw()
135 drawContext->internal_drawBatch(pipelineBuilder, batch); in onDraw()
Drrects.cpp70 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()
Dtexturedomaineffect.cpp84 SkAutoTUnref<GrDrawContext> drawContext(context->drawContext(rt)); in onDraw() local
85 if (!drawContext) { in onDraw()
138 drawContext->internal_drawBatch(pipelineBuilder, batch); in onDraw()
Dconstcolorprocessor.cpp61 SkAutoTUnref<GrDrawContext> drawContext(context->drawContext(rt)); in onDraw() local
62 if (!drawContext) { in onDraw()
121 drawContext->internal_drawBatch(pipelineBuilder, batch); in onDraw()
Dconvexpolyeffect.cpp166 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/
DSkMaskFilter.h115 GrDrawContext* drawContext,
126 GrDrawContext* drawContext,
/external/deqp/framework/referencerenderer/
DrrRenderer.cpp930 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/
DSkImage_Gpu.cpp271 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/
DGrConfigConversionEffect.cpp228 context->drawContext(readTex->asRenderTarget())); in TestForPreservingPMConversions()
246 context->drawContext(tempTex->asRenderTarget())); in TestForPreservingPMConversions()
260 readDrawContext.reset(context->drawContext(readTex->asRenderTarget())); in TestForPreservingPMConversions()

12