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.cpp287 if (vulkanManager().hasVkContext() && mGrContext) { in requireVkContext()
365 if (mGrContext) { in setGrContext()
367 mGrContext->releaseResourcesAndAbandonContext(); in setGrContext()
369 mGrContext = std::move(context); in setGrContext()
370 if (mGrContext) { in setGrContext()
371 DeviceInfo::setMaxTextureSize(mGrContext->maxRenderTargetSize()); in setGrContext()
381 return mGrContext; in requireGrContext()
DCacheManager.h71 sk_sp<GrDirectContext> mGrContext; variable
DRenderThread.h154 GrDirectContext* getGrContext() const { return mGrContext.get(); } in getGrContext()
243 sk_sp<GrDirectContext> mGrContext; variable
DVulkanSurface.h127 GrDirectContext* mGrContext; variable
DVulkanSurface.cpp337 : mNativeWindow(window), mWindowInfo(windowInfo), mGrContext(grContext) {} in VulkanSurface()
450 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()
1405 return mGrContext->maxTextureSize(); in getMaxTextureSize()
1409 return mGrContext->maxRenderTargetSize(); in getMaxViewportDims()
1601 mGrContext->dumpMemoryStatistics(&gpuReporter); in dump()
DSkiaGLRenderEngine.h156 sk_sp<GrDirectContext> mGrContext; variable