Home
last modified time | relevance | path

Searched refs:mGrContext (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/libs/hwui/renderthread/
DCacheManager.cpp65 if (context != mGrContext) { in reset()
70 mGrContext = std::move(context); in reset()
71 mGrContext->setResourceCacheLimit(mMaxResourceBytes); in reset()
77 mGrContext.reset(nullptr); in destroy()
100 if (!mGrContext) { in trimMemory()
105 mGrContext->flushAndSubmit(/*syncCpu=*/true); in trimMemory()
109 mGrContext->freeGpuResources(); in trimMemory()
116 mGrContext->purgeUnlockedResources(true); in trimMemory()
117 mGrContext->setResourceCacheLimit(mBackgroundResourceBytes); in trimMemory()
118 mGrContext->setResourceCacheLimit(mMaxResourceBytes); in trimMemory()
[all …]
DRenderThread.cpp270 if (vulkanManager().hasVkContext() && mGrContext) { in requireVkContext()
348 if (mGrContext) { in setGrContext()
350 mGrContext->releaseResourcesAndAbandonContext(); in setGrContext()
352 mGrContext = std::move(context); in setGrContext()
353 if (mGrContext) { in setGrContext()
354 DeviceInfo::setMaxTextureSize(mGrContext->maxRenderTargetSize()); in setGrContext()
364 return mGrContext; in requireGrContext()
DRenderThread.h153 GrDirectContext* getGrContext() const { return mGrContext.get(); } in getGrContext()
240 sk_sp<GrDirectContext> mGrContext; variable
DCacheManager.h71 sk_sp<GrDirectContext> mGrContext; variable
DVulkanSurface.h124 GrDirectContext* mGrContext; variable
DVulkanSurface.cpp316 : mNativeWindow(window), mWindowInfo(windowInfo), mGrContext(grContext) {} in VulkanSurface()
428 mGrContext, ANativeWindowBuffer_getHardwareBuffer(bufferInfo->buffer.get()), in dequeueNativeBuffer()
/frameworks/base/libs/hwui/
DHardwareBitmapUploader.cpp228 mGrContext.reset(); in onDestroy()
246 LOG_ALWAYS_FATAL_IF(mGrContext, in onUploadHardwareBitmap()
251 if (!mGrContext) { in onUploadHardwareBitmap()
253 mGrContext = vkManager->createContext(options, in onUploadHardwareBitmap()
255 LOG_ALWAYS_FATAL_IF(!mGrContext, "failed to create GrContext for vulkan uploads"); in onUploadHardwareBitmap()
260 SkImage::MakeFromAHardwareBufferWithData(mGrContext.get(), bitmap.pixmap(), ahb); in onUploadHardwareBitmap()
261 mGrContext->submit(true); in onUploadHardwareBitmap()
276 mGrContext.reset(); in getVulkanManager()
284 sk_sp<GrDirectContext> mGrContext; member in android::uirenderer::VkUploader
/frameworks/native/libs/renderengine/skia/
DSkiaGLRenderEngine.cpp322 mGrContext = GrDirectContext::MakeGL(glInterface, options); in SkiaGLRenderEngine()
344 mGrContext->flushAndSubmit(true); in ~SkiaGLRenderEngine()
345 mGrContext->abandonContext(); in ~SkiaGLRenderEngine()
374 return mInProtectedContext ? mProtectedGrContext.get() : mGrContext.get(); in getActiveGrContext()
1264 return mGrContext->maxTextureSize(); in getMaxTextureSize()
1268 return mGrContext->maxRenderTargetSize(); in getMaxViewportDims()
1460 mGrContext->dumpMemoryStatistics(&gpuReporter); in dump()
DSkiaGLRenderEngine.h147 sk_sp<GrDirectContext> mGrContext; variable