Searched refs:sProxy (Results 1 – 5 of 5) sorted by relevance
/external/skia/tests/ |
D | ProxyRefTest.cpp | 103 sk_sp<GrSurfaceProxy> sProxy((*make)(provider)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 105 GrPendingIOResource<GrSurfaceProxy, kWrite_GrIOType> fWrite(sProxy.get()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 107 check_refs(reporter, sProxy.get(), 1, 1, 0, 1); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 111 bool proxyGetsDiscardRef = !sProxy->isWrapped_ForTesting() && in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 115 sProxy->instantiate(provider); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 118 check_refs(reporter, sProxy.get(), 1, 1, 0, expectedWrites); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 123 sk_sp<GrSurfaceProxy> sProxy((*make)(provider)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 125 GrPendingIOResource<GrSurfaceProxy, kRead_GrIOType> fRead(sProxy.get()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 127 check_refs(reporter, sProxy.get(), 1, 1, 1, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 131 bool proxyGetsDiscardRef = !sProxy->isWrapped_ForTesting() && in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all …]
|
D | ProxyConversionTest.cpp | 68 sk_sp<GrSurfaceProxy> sProxy(make_wrapped_FBO0(provider, reporter, desc)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 71 GrRenderTargetProxy* rtProxy = sProxy->asRenderTargetProxy(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 79 sk_sp<GrSurfaceProxy> sProxy(make_wrapped_offscreen_rt(provider, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 84 GrRenderTargetProxy* rtProxy = sProxy->asRenderTargetProxy(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 94 sk_sp<GrSurfaceProxy> sProxy(make_wrapped_texture(provider, desc, SkBudgeted::kYes)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 97 GrTextureProxy* tProxy = sProxy->asTextureProxy(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 108 sk_sp<GrSurfaceProxy> sProxy(make_wrapped_texture(provider, desc, SkBudgeted::kYes)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 111 GrTextureProxy* tProxy = sProxy->asTextureProxy(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | ProxyTest.cpp | 239 sk_sp<GrSurfaceProxy> sProxy(GrSurfaceProxy::MakeWrapped(defaultFBO)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 240 check_surface(reporter, sProxy.get(), origin, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 243 check_rendertarget(reporter, caps, provider, sProxy->asRenderTargetProxy(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 255 sk_sp<GrSurfaceProxy> sProxy(GrSurfaceProxy::MakeWrapped(rt)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 256 check_surface(reporter, sProxy.get(), origin, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 259 check_rendertarget(reporter, caps, provider, sProxy->asRenderTargetProxy(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 270 sk_sp<GrSurfaceProxy> sProxy(GrSurfaceProxy::MakeWrapped(tex)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 271 check_surface(reporter, sProxy.get(), origin, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 273 check_texture(reporter, provider, sProxy->asTextureProxy(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
/external/skia/src/gpu/ |
D | GrDrawingManager.cpp | 281 sk_sp<GrSurfaceProxy> sProxy, in makeRenderTargetContext() argument 284 if (this->wasAbandoned() || !sProxy->asRenderTargetProxy()) { in makeRenderTargetContext() 291 if (colorSpace && !SkSurface_Gpu::Valid(fContext, sProxy->config(), colorSpace.get())) { in makeRenderTargetContext() 296 sk_sp<GrRenderTargetProxy> rtp(sk_ref_sp(sProxy->asRenderTargetProxy())); in makeRenderTargetContext() 326 sk_sp<GrTextureContext> GrDrawingManager::makeTextureContext(sk_sp<GrSurfaceProxy> sProxy, in makeTextureContext() argument 328 if (this->wasAbandoned() || !sProxy->asTextureProxy()) { in makeTextureContext() 335 if (colorSpace && !SkSurface_Gpu::Valid(fContext, sProxy->config(), colorSpace.get())) { in makeTextureContext() 341 SkASSERT(!sProxy->asRenderTargetProxy()); in makeTextureContext() 343 sk_sp<GrTextureProxy> textureProxy(sk_ref_sp(sProxy->asTextureProxy())); in makeTextureContext()
|
/external/skia/src/gpu/text/ |
D | GrAtlasGlyphCache.cpp | 121 static bool save_pixels(GrContext* context, GrSurfaceProxy* sProxy, const char* filename) { in save_pixels() argument 122 if (!sProxy) { in save_pixels() 126 SkImageInfo ii = SkImageInfo::Make(sProxy->width(), sProxy->height(), in save_pixels() 134 sk_ref_sp(sProxy), in save_pixels()
|