Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/renderthread/
DCacheManager.cpp67 if (context != mGrContext) { in reset()
72 mGrContext = std::move(context); in reset()
73 mGrContext->getResourceCacheLimits(&mMaxResources, nullptr); in reset()
74 mGrContext->setResourceCacheLimits(mMaxResources, mMaxResourceBytes); in reset()
80 mGrContext.reset(nullptr); in destroy()
106 if (!mGrContext) { in trimMemory()
110 mGrContext->flush(); in trimMemory()
115 mGrContext->freeGpuResources(); in trimMemory()
122 mGrContext->purgeUnlockedResources(true); in trimMemory()
123 mGrContext->setResourceCacheLimits(mMaxResources, mBackgroundResourceBytes); in trimMemory()
[all …]
DRenderThread.cpp288 if (mGrContext) { in setGrContext()
290 mGrContext->releaseResourcesAndAbandonContext(); in setGrContext()
292 mGrContext = std::move(context); in setGrContext()
293 if (mGrContext) { in setGrContext()
295 DeviceInfo::setMaxTextureSize(mGrContext->maxRenderTargetSize()); in setGrContext()
DRenderThread.h105 GrContext* getGrContext() const { return mGrContext.get(); } in getGrContext()
175 sk_sp<GrContext> mGrContext; variable
DCacheManager.h64 sk_sp<GrContext> mGrContext; variable
DVulkanSurface.h116 GrContext* mGrContext; variable
DVulkanSurface.cpp387 , mGrContext(grContext) in VulkanSurface()
508 mGrContext, ANativeWindowBuffer_getHardwareBuffer(bufferInfo->buffer.get()), in dequeueNativeBuffer()
/frameworks/base/libs/hwui/
DHardwareBitmapUploader.cpp239 mGrContext.reset(); in onDestroy()
243 mGrContext.reset(); in onIdle()
250 LOG_ALWAYS_FATAL_IF(mGrContext, in onBeginUpload()
257 if (!mGrContext) { in onBeginUpload()
259 mGrContext = mVulkanManager.createContext(options); in onBeginUpload()
260 LOG_ALWAYS_FATAL_IF(!mGrContext, "failed to create GrContext for vulkan uploads"); in onBeginUpload()
271 sk_sp<SkImage> image = SkImage::MakeFromAHardwareBufferWithData(mGrContext.get(), in onUploadHardwareBitmap()
276 sk_sp<GrContext> mGrContext; member in android::uirenderer::VkUploader