Searched refs:grContext (Results 1 – 5 of 5) sorted by relevance
27 static size_t getCacheUsage(GrContext* grContext) { in getCacheUsage() argument29 grContext->getResourceCacheUsage(nullptr, &cacheUsage); in getCacheUsage()35 GrContext* grContext = renderThread.getGrContext(); in RENDERTHREAD_SKIA_PIPELINE_TEST() local36 ASSERT_TRUE(grContext != nullptr); in RENDERTHREAD_SKIA_PIPELINE_TEST()41 while (getCacheUsage(grContext) <= renderThread.cacheManager().getBackgroundCacheSize()) { in RENDERTHREAD_SKIA_PIPELINE_TEST()43 sk_sp<SkSurface> surface = SkSurface::MakeRenderTarget(grContext, SkBudgeted::kYes, info); in RENDERTHREAD_SKIA_PIPELINE_TEST()46 grContext->flush(); in RENDERTHREAD_SKIA_PIPELINE_TEST()55 ASSERT_TRUE(0 == grContext->getResourceCachePurgeableBytes()); in RENDERTHREAD_SKIA_PIPELINE_TEST()64 const size_t purgeableBytes = grContext->getResourceCachePurgeableBytes(); in RENDERTHREAD_SKIA_PIPELINE_TEST()69 ASSERT_TRUE(0 < grContext->getResourceCachePurgeableBytes()); in RENDERTHREAD_SKIA_PIPELINE_TEST()[all …]
43 sk_sp<GrContext> grContext = sk_ref_sp(mRenderThread.getGrContext()); in copyImageInto() local47 grContext.reset(GrContext::Create(GrBackend::kOpenGL_GrBackend, in copyImageInto()50 grContext->resetContext(); in copyImageInto()60 sk_sp<SkImage> image(SkImage::MakeFromAdoptedTexture(grContext.get(), backendTexture, in copyImageInto()102 grContext.get(), SkBudgeted::kYes, bitmap->info()); in copyImageInto()
188 auto grContext = mRenderThread.getGrContext(); in renderVectorDrawableCache() local189 atlas->prepareForDraw(grContext); in renderVectorDrawableCache()191 vd->updateCache(atlas, grContext); in renderVectorDrawableCache()193 grContext->flush(); in renderVectorDrawableCache()
262 sk_sp<GrContext> grContext = sk_ref_sp(renderThread.getGrContext()); in allocateHardwareBitmap() local279 isSupported = grContext->caps()->isConfigTexturable(kRGBA_half_GrPixelConfig); in allocateHardwareBitmap()384 grContext->resetContext(kTextureBinding_GrGLBackendState); in allocateHardwareBitmap()
63 void reset(GrContext* grContext);