Lines Matching refs:thread
59 CanvasContext* CanvasContext::create(RenderThread& thread, bool translucent, in create() argument
65 return new CanvasContext(thread, translucent, rootRenderNode, contextFactory, in create()
66 std::make_unique<skiapipeline::SkiaOpenGLPipeline>(thread)); in create()
68 return new CanvasContext(thread, translucent, rootRenderNode, contextFactory, in create()
69 std::make_unique<skiapipeline::SkiaVulkanPipeline>(thread)); in create()
77 void CanvasContext::invokeFunctor(const RenderThread& thread, Functor* functor) { in invokeFunctor() argument
82 skiapipeline::SkiaOpenGLPipeline::invokeFunctor(thread, functor); in invokeFunctor()
85 skiapipeline::SkiaVulkanPipeline::invokeFunctor(thread, functor); in invokeFunctor()
93 void CanvasContext::prepareToDraw(const RenderThread& thread, Bitmap* bitmap) { in prepareToDraw() argument
94 skiapipeline::SkiaPipeline::prepareToDraw(thread, bitmap); in prepareToDraw()
97 CanvasContext::CanvasContext(RenderThread& thread, bool translucent, RenderNode* rootRenderNode, in CanvasContext() argument
100 : mRenderThread(thread) in CanvasContext()
104 , mJankTracker(&thread.globalProfileData()) in CanvasContext()
105 , mProfiler(mJankTracker.frames(), thread.timeLord().frameIntervalNanos()) in CanvasContext()
683 void CanvasContext::trimMemory(RenderThread& thread, int level) { in trimMemory() argument
685 if (!thread.getGrContext()) return; in trimMemory()
688 thread.cacheManager().trimMemory(CacheManager::TrimMemoryMode::Complete); in trimMemory()
689 thread.destroyRenderingContext(); in trimMemory()
691 thread.cacheManager().trimMemory(CacheManager::TrimMemoryMode::UiHidden); in trimMemory()