Home
last modified time | relevance | path

Searched refs:rtContext (Results 1 – 10 of 10) sorted by relevance

/external/skia/tests/
DClearTest.cpp70 sk_sp<GrRenderTargetContext> rtContext; in clear_op_test() local
96 rtContext = newRTC(context, kW, kH); in clear_op_test()
97 SkASSERT(rtContext); in clear_op_test()
100 rtContext->clear(&fullRect, kColor1f, GrRenderTargetContext::CanClearFullscreen::kNo); in clear_op_test()
101 if (!check_rect(rtContext.get(), fullRect, kColor1, &actualValue, &failX, &failY)) { in clear_op_test()
106 rtContext = newRTC(context, kW, kH); in clear_op_test()
107 SkASSERT(rtContext); in clear_op_test()
110 rtContext->clear(&fullRect, kColor1f, GrRenderTargetContext::CanClearFullscreen::kNo); in clear_op_test()
111 rtContext->clear(&fullRect, kColor1f, GrRenderTargetContext::CanClearFullscreen::kNo); in clear_op_test()
112 if (!check_rect(rtContext.get(), fullRect, kColor1, &actualValue, &failX, &failY)) { in clear_op_test()
[all …]
DRectangleTextureTest.cpp28 sk_sp<GrRenderTargetContext> rtContext(context->priv().makeDeferredRenderTargetContext( in test_basic_draw_as_src() local
36 rtContext->clear(nullptr, SkPMColor4f::FromBytes_RGBA(0xDDCCBBAA), in test_basic_draw_as_src()
42 rtContext->drawPaint(GrNoClip(), std::move(paint), SkMatrix::I()); in test_basic_draw_as_src()
43 test_read_pixels(reporter, rtContext.get(), expectedPixelValues, in test_basic_draw_as_src()
/external/skqp/tests/
DClearTest.cpp71 sk_sp<GrRenderTargetContext> rtContext; in clear_op_test() local
97 rtContext = newRTC(context, kW, kH); in clear_op_test()
98 SkASSERT(rtContext); in clear_op_test()
101 rtContext->clear(&fullRect, kColor1f, GrRenderTargetContext::CanClearFullscreen::kNo); in clear_op_test()
102 if (!check_rect(rtContext.get(), fullRect, kColor1, &actualValue, &failX, &failY)) { in clear_op_test()
107 rtContext = newRTC(context, kW, kH); in clear_op_test()
108 SkASSERT(rtContext); in clear_op_test()
111 rtContext->clear(&fullRect, kColor1f, GrRenderTargetContext::CanClearFullscreen::kNo); in clear_op_test()
112 rtContext->clear(&fullRect, kColor1f, GrRenderTargetContext::CanClearFullscreen::kNo); in clear_op_test()
113 if (!check_rect(rtContext.get(), fullRect, kColor1, &actualValue, &failX, &failY)) { in clear_op_test()
[all …]
DRectangleTextureTest.cpp28 sk_sp<GrRenderTargetContext> rtContext(context->contextPriv().makeDeferredRenderTargetContext( in test_basic_draw_as_src() local
36 rtContext->clear(nullptr, SkPMColor4f::FromBytes_RGBA(0xDDCCBBAA), in test_basic_draw_as_src()
42 rtContext->drawPaint(GrNoClip(), std::move(paint), SkMatrix::I()); in test_basic_draw_as_src()
43 test_read_pixels(reporter, rtContext.get(), expectedPixelValues, in test_basic_draw_as_src()
/external/skia/src/gpu/
DGrBackendTextureImageGenerator.cpp207 sk_sp<GrRenderTargetContext> rtContext( in onGenerateTexture() local
213 if (!rtContext) { in onGenerateTexture()
218 if (!rtContext->copy(proxy.get(), subset, SkIPoint::Make(0, 0))) { in onGenerateTexture()
222 return rtContext->asTextureProxyRef(); in onGenerateTexture()
DGrBlurUtils.cpp180 sk_sp<GrRenderTargetContext> rtContext( in create_mask_GPU() local
185 if (!rtContext) { in create_mask_GPU()
189 rtContext->priv().absClear(nullptr, SK_PMColor4fTRANSPARENT); in create_mask_GPU()
202 rtContext->drawShape(clip, std::move(maskPaint), GrAA::kYes, viewMatrix, shape); in create_mask_GPU()
203 return rtContext->asTextureProxyRef(); in create_mask_GPU()
/external/skqp/src/gpu/
DGrBackendTextureImageGenerator.cpp208 sk_sp<GrRenderTargetContext> rtContext( in onGenerateTexture() local
214 if (!rtContext) { in onGenerateTexture()
219 if (!rtContext->copy(proxy.get(), subset, SkIPoint::Make(0, 0))) { in onGenerateTexture()
223 return rtContext->asTextureProxyRef(); in onGenerateTexture()
DGrBlurUtils.cpp180 sk_sp<GrRenderTargetContext> rtContext( in create_mask_GPU() local
185 if (!rtContext) { in create_mask_GPU()
189 rtContext->priv().absClear(nullptr, SK_PMColor4fTRANSPARENT); in create_mask_GPU()
202 rtContext->drawShape(clip, std::move(maskPaint), GrAA::kYes, viewMatrix, shape); in create_mask_GPU()
203 return rtContext->asTextureProxyRef(); in create_mask_GPU()
/external/skqp/src/effects/imagefilters/
DSkAlphaThresholdFilter.cpp110 sk_sp<GrRenderTargetContext> rtContext( in createMaskTexture() local
114 if (!rtContext) { in createMaskTexture()
119 rtContext->clear(nullptr, SK_PMColor4fTRANSPARENT, in createMaskTexture()
129 rtContext->drawRect(clip, std::move(paint), GrAA::kNo, inMatrix, rect); in createMaskTexture()
134 return rtContext->asTextureProxyRef(); in createMaskTexture()
/external/skia/src/effects/imagefilters/
DSkAlphaThresholdFilter.cpp113 sk_sp<GrRenderTargetContext> rtContext( in createMaskTexture() local
117 if (!rtContext) { in createMaskTexture()
122 rtContext->clear(nullptr, SK_PMColor4fTRANSPARENT, in createMaskTexture()
132 rtContext->drawRect(clip, std::move(paint), GrAA::kNo, inMatrix, rect); in createMaskTexture()
137 return rtContext->asTextureProxyRef(); in createMaskTexture()