Home
last modified time | relevance | path

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

/external/skqp/tests/
DGrUploadPixelsTests.cpp35 sk_sp<GrSurfaceContext> sContext = context->contextPriv().makeWrappedSurfaceContext(proxy); in basic_texture_test() local
39 bool result = sContext->readPixels(dstInfo, dstBuffer, 0, 0, 0); in basic_texture_test()
47 result = sContext->writePixels(dstInfo, srcBuffer, 0, 2, 10); in basic_texture_test()
52 result = sContext->readPixels(dstInfo, dstBuffer, 0, 2, 10); in basic_texture_test()
65 sk_sp<GrSurfaceContext> sContext = context->contextPriv().makeWrappedSurfaceContext(proxy); in basic_texture_test() local
69 bool result = sContext->readPixels(dstInfo, dstBuffer, 0, 0, 0); in basic_texture_test()
77 result = sContext->writePixels(dstInfo, srcBuffer, 0, 5, 4); in basic_texture_test()
82 result = sContext->readPixels(dstInfo, dstBuffer, 0, 5, 4); in basic_texture_test()
DReadWriteAlphaTest.cpp80 sk_sp<GrSurfaceContext> sContext(context->contextPriv().makeWrappedSurfaceContext( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
95 bool result = sContext->writePixels(ii, alphaData, 0, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
105 result = sContext->readPixels(ii, readback.get(), rowBytes, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
198 sk_sp<GrSurfaceContext> sContext = context->contextPriv().makeWrappedSurfaceContext( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
209 bool result = sContext->readPixels(dstInfo, readback.get(), rowBytes, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DFloatingPointTextureTest.cpp56 sk_sp<GrSurfaceContext> sContext = context->contextPriv().makeWrappedSurfaceContext( in runFPTest() local
58 REPORTER_ASSERT(reporter, sContext); in runFPTest()
61 sContext.get(), 0, 0, DEV_W, DEV_H, colorType, nullptr, readBuffer.begin(), 0); in runFPTest()
DPackedConfigsTextureTest.cpp120 sk_sp<GrSurfaceContext> sContext = context->contextPriv().makeWrappedSurfaceContext( in run_test() local
123 if (!sContext->readPixels(dstInfo, readBuffer.begin(), 0, 0, 0)) { in run_test()
DReadPixelsTest.cpp480 sk_sp<GrSurfaceContext> sContext, in test_readpixels_texture() argument
509 bool success = sContext->readPixels(bmp.info(), bmp.getPixels(), in test_readpixels_texture()
546 sk_sp<GrSurfaceContext> sContext = context->contextPriv().makeWrappedSurfaceContext( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
549 test_readpixels_texture(reporter, std::move(sContext), info); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DProcessorTest.cpp352 sk_sp<GrSurfaceContext> sContext(context->contextPriv().makeWrappedSurfaceContext(src)); in log_surface_proxy() local
353 return log_surface_context(sContext, dst); in log_surface_proxy()
/external/ims/rcs/presencepolling/src/com/android/service/ims/presence/
DPresenceSetting.java42 private static Context sContext = null; field in PresenceSetting
60 sContext = context; in init()
65 if (sContext != null) { in getCapabilityPollInterval()
86 if (sContext != null) { in getCapabilityCacheExpiration()
107 if (sContext != null) { in getPublishTimer()
127 if (sContext != null) { in getPublishTimerExtended()
149 if (sContext != null) { in getMaxNumberOfEntriesInRequestContainedList()
171 if (sContext != null) { in getCapabilityPollListSubscriptionExpiration()
246 SubscriptionManager sm = sContext.getSystemService(SubscriptionManager.class); in getDefaultSubscriptionId()
/external/autotest/client/site_tests/graphics_SanAngeles/src/
Dapp-linux.c73 static struct waffle_context *sContext; variable
136 sContext = waffle_context_create(sConfig, NULL); in initGraphics()
137 if (!sContext) in initGraphics()
147 ok = waffle_make_current(sDisplay, sWindow, sContext); in initGraphics()
175 if (!waffle_context_destroy(sContext)) in deinitGraphics()
/external/skia/tools/gpu/
DProxyUtils.cpp81 auto sContext = GrSurfaceContext::Make(dContext, std::move(view), pixmap.colorInfo()); in MakeTextureProxyViewFromData() local
82 if (!sContext) { in MakeTextureProxyViewFromData()
85 if (!sContext->writePixels(dContext, pixmap, {0, 0})) { in MakeTextureProxyViewFromData()
88 return sContext->readSurfaceView(); in MakeTextureProxyViewFromData()
/external/skia/src/image/
DSkImage_GpuBase.cpp116 auto sContext = GrSurfaceContext::Make(dContext, std::move(view), std::move(colorInfo)); in getROPixels() local
117 if (!sContext) { in getROPixels()
121 if (!sContext->readPixels(dContext, pmap, {0, 0})) { in getROPixels()
176 auto sContext = GrSurfaceContext::Make(dContext, std::move(view), colorInfo); in onReadPixels() local
177 if (!sContext) { in onReadPixels()
181 return sContext->readPixels(dContext, {dstInfo, dstPixels, dstRB}, {srcX, srcY}); in onReadPixels()
/external/skqp/src/image/
DSkImage_GpuBase.cpp93 sk_sp<GrSurfaceContext> sContext = fContext->contextPriv().makeWrappedSurfaceContext( in getROPixels() local
96 if (!sContext) { in getROPixels()
100 if (!sContext->readPixels(pmap.info(), pmap.writable_addr(), pmap.rowBytes(), 0, 0)) { in getROPixels()
125 sk_sp<GrSurfaceContext> sContext(fContext->contextPriv().makeDeferredSurfaceContext( in onMakeSubset() local
128 if (!sContext) { in onMakeSubset()
132 if (!sContext->copy(proxy.get(), subset, SkIPoint::Make(0, 0))) { in onMakeSubset()
138 sContext->asTextureProxyRef(), fColorSpace); in onMakeSubset()
187 sk_sp<GrSurfaceContext> sContext = fContext->contextPriv().makeWrappedSurfaceContext( in onReadPixels() local
189 if (!sContext) { in onReadPixels()
193 if (!sContext->readPixels(rec.fInfo, rec.fPixels, rec.fRowBytes, rec.fX, rec.fY, flags)) { in onReadPixels()
/external/skqp/tools/gpu/
DProxyUtils.cpp71 auto sContext = context->contextPriv().makeWrappedSurfaceContext(proxy, nullptr); in MakeTextureProxyFromData() local
72 if (!sContext) { in MakeTextureProxyFromData()
75 if (!context->contextPriv().writeSurfacePixels(sContext.get(), 0, 0, width, height, colorType, in MakeTextureProxyFromData()
/external/skia/tests/
DFloatingPointTextureTest.cpp63 auto sContext = GrSurfaceContext::Make(dContext, std::move(fpView), info.colorInfo()); in runFPTest() local
64 REPORTER_ASSERT(reporter, sContext); in runFPTest()
67 bool result = sContext->readPixels(dContext, readPixmap, {0, 0}); in runFPTest()
DSRGBReadWritePixelsTest.cpp125 GrSurfaceContext* sContext, in read_and_check_pixels() argument
133 if (!sContext->readPixels(dContext, readPM, {0, 0})) { in read_and_check_pixels()
DProcessorTest.cpp407 auto sContext = GrSurfaceContext::Make(dContext, std::move(src), ii.colorInfo()); in log_texture_view() local
410 SkAssertResult(sContext->readPixels(dContext, bm.pixmap(), {0, 0})); in log_texture_view()
/external/skqp/src/gpu/text/
DGrAtlasManager.cpp112 sk_sp<GrSurfaceContext> sContext(context->contextPriv().makeWrappedSurfaceContext( in save_pixels() local
114 if (!sContext || !sContext->asTextureProxy()) { in save_pixels()
118 bool result = sContext->readPixels(ii, bm.getPixels(), bm.rowBytes(), 0, 0); in save_pixels()
/external/skia/src/gpu/text/
DGrAtlasManager.cpp237 auto sContext = GrSurfaceContext::Make(dContext, in save_pixels() local
240 if (!sContext || !sContext->asTextureProxy()) { in save_pixels()
244 bool result = sContext->readPixels(dContext, bm.pixmap(), {0, 0}); in save_pixels()
/external/skqp/src/gpu/
DGrResourceProvider.cpp130 sk_sp<GrSurfaceContext> sContext = context->contextPriv().makeWrappedSurfaceContext( in createTexture() local
132 if (!sContext) { in createTexture()
135 SkAssertResult(sContext->writePixels(srcInfo, mipLevel.fPixels, mipLevel.fRowBytes, 0, 0)); in createTexture()
136 return sk_ref_sp(sContext->asTextureProxy()->peekTexture()); in createTexture()
DSkGr.cpp175 sk_sp<GrSurfaceContext> sContext = in GrCopyBaseMipMapToTextureProxy() local
177 SkASSERT(sContext); in GrCopyBaseMipMapToTextureProxy()
178 SkAssertResult(sContext->copy(baseProxy)); in GrCopyBaseMipMapToTextureProxy()
DGrContext.cpp858 sk_sp<GrSurfaceContext> sContext = this->makeWrappedSurfaceContext(std::move(proxy), in makeDeferredSurfaceContext() local
861 if (sContext && sContext->asRenderTargetContext()) { in makeDeferredSurfaceContext()
862 sContext->asRenderTargetContext()->discard(); in makeDeferredSurfaceContext()
865 return sContext; in makeDeferredSurfaceContext()
DGrRenderTargetContext.cpp2071 sk_sp<GrSurfaceContext> sContext = fContext->contextPriv().makeDeferredSurfaceContext( in setupDstProxy() local
2074 if (!sContext) { in setupDstProxy()
2079 if (!sContext->copy(rtProxy, copyRect, dstPoint)) { in setupDstProxy()
2084 dstProxy->setProxy(sContext->asTextureProxyRef()); in setupDstProxy()
/external/skqp/src/core/
DSkSpecialImage.cpp434 sk_sp<GrSurfaceContext> sContext = fContext->contextPriv().makeWrappedSurfaceContext( in onGetROPixels() local
436 if (!sContext) { in onGetROPixels()
440 if (!sContext->readPixels(info, pmap.writable_addr(), pmap.rowBytes(), in onGetROPixels()
/external/rust/crates/libsqlite3-sys/sqlite3/
Dsqlite3.c92717 sqlite3_context sContext;
92731 memset(&sContext, 0, sizeof(sContext));
92732 sContext.pOut = pDest;
92741 rc = pModule->xColumn(pCur->uc.pVCur, &sContext, pOp->p2);
92743 if( sContext.isError>0 ){
92745 rc = sContext.isError;
116332 AuthContext sContext; /* Authorization context */
116358 memset(&sContext, 0, sizeof(sContext));
116430 sqlite3AuthContextPush(pParse, &sContext, pTab->zName);
116701 sqlite3AuthContextPop(&sContext);
[all …]
/external/sqlite/dist/orig/
Dsqlite3.c92499 sqlite3_context sContext;
92513 memset(&sContext, 0, sizeof(sContext));
92514 sContext.pOut = pDest;
92523 rc = pModule->xColumn(pCur->uc.pVCur, &sContext, pOp->p2);
92525 if( sContext.isError>0 ){
92527 rc = sContext.isError;
116013 AuthContext sContext; /* Authorization context */
116039 memset(&sContext, 0, sizeof(sContext));
116111 sqlite3AuthContextPush(pParse, &sContext, pTab->zName);
116382 sqlite3AuthContextPop(&sContext);
[all …]
/external/sqlite/dist/
Dsqlite3.c92515 sqlite3_context sContext;
92529 memset(&sContext, 0, sizeof(sContext));
92530 sContext.pOut = pDest;
92539 rc = pModule->xColumn(pCur->uc.pVCur, &sContext, pOp->p2);
92541 if( sContext.isError>0 ){
92543 rc = sContext.isError;
116029 AuthContext sContext; /* Authorization context */
116055 memset(&sContext, 0, sizeof(sContext));
116127 sqlite3AuthContextPush(pParse, &sContext, pTab->zName);
116398 sqlite3AuthContextPop(&sContext);
[all …]