Searched refs:RSOffscreenRenderThread (Results 1 – 7 of 7) sorted by relevance
29 class RSB_EXPORT RSOffscreenRenderThread {31 static RSOffscreenRenderThread& Instance();40 RSOffscreenRenderThread();41 ~RSOffscreenRenderThread() = default;42 RSOffscreenRenderThread(const RSOffscreenRenderThread&);43 RSOffscreenRenderThread(const RSOffscreenRenderThread&&);44 RSOffscreenRenderThread& operator=(const RSOffscreenRenderThread&);45 RSOffscreenRenderThread& operator=(const RSOffscreenRenderThread&&);
51 ASSERT_EQ(RSOffscreenRenderThread::Instance().GetCaptureTask(0), nullptr);52 RSOffscreenRenderThread::Instance().PostTask(task);63 ASSERT_TRUE(RSOffscreenRenderThread::Instance().GetCaptureTask(0) == nullptr);75 RSOffscreenRenderThread::Instance().handler_.reset();76 RSOffscreenRenderThread::Instance().PostTask(task);78 RSOffscreenRenderThread::Instance().InSertCaptureTask(1, taskTwo);79 ASSERT_NE(RSOffscreenRenderThread::Instance().GetCaptureTask(1), nullptr);80 ASSERT_EQ(RSOffscreenRenderThread::Instance().GetCaptureTask(2), nullptr);81 RSOffscreenRenderThread::Instance().GetRenderContext();92 std::shared_ptr<RSOffscreenRenderThread> thread = std::make_shared<RSOffscreenRenderThread>();
29 RSOffscreenRenderThread& RSOffscreenRenderThread::Instance() in Instance()31 static RSOffscreenRenderThread instance; in Instance()35 RSOffscreenRenderThread::RSOffscreenRenderThread() in RSOffscreenRenderThread() function in OHOS::Rosen::RSOffscreenRenderThread68 void RSOffscreenRenderThread::PostTask(const std::function<void()>& task) in PostTask()75 void RSOffscreenRenderThread::InSertCaptureTask(NodeId nodeId, std::function<void()>& task) in InSertCaptureTask()81 const std::function<void()> RSOffscreenRenderThread::GetCaptureTask(NodeId nodeId) in GetCaptureTask()96 const std::shared_ptr<RenderContext> RSOffscreenRenderThread::GetRenderContext() in GetRenderContext()104 void RSOffscreenRenderThread::CleanGrResource() in CleanGrResource()
98 RSOffscreenRenderThread::Instance().CleanGrResource(); in TakeLocalCapture()103 RSOffscreenRenderThread::Instance().CleanGrResource(); in TakeLocalCapture()107 RSOffscreenRenderThread::Instance().CleanGrResource(); in TakeLocalCapture()201 auto renderContext = RSOffscreenRenderThread::Instance().GetRenderContext(); in CreateSurface()263 … sharedContext = RSOffscreenRenderThread::Instance().GetRenderContext()->GetSharedDrGPUContext(); in SetCanvas()
912 RSOffscreenRenderThread::Instance().PostTask(offscreenRenderTask); in TakeSurfaceCaptureForUIWithUni()916 RSOffscreenRenderThread::Instance().InSertCaptureTask(id, offscreenRenderTask); in TakeSurfaceCaptureForUIWithUni()919 RSOffscreenRenderThread::Instance().PostTask(offscreenRenderTask); in TakeSurfaceCaptureForUIWithUni()
359 RSOffscreenRenderThread::Instance().PostTask(offscreenRenderTask); in TakeSurfaceCaptureForUIWithoutUni()
524 …RSOffscreenRenderThread::Instance().PostTask([image = captureImage_]() mutable { image = nullptr; … in ReleaseCaptureImage()