Home
last modified time | relevance | path

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

/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/offscreen_render/
H A Drs_offscreen_render_thread.h29 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&&);
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/offscreen_render/
H A Drs_offscreen_render_thread_test.cpp51 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>();
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/offscreen_render/
H A Drs_offscreen_render_thread.cpp29 RSOffscreenRenderThread& RSOffscreenRenderThread::Instance() in Instance()
31 static RSOffscreenRenderThread instance; in Instance()
35 RSOffscreenRenderThread::RSOffscreenRenderThread() in RSOffscreenRenderThread() function in OHOS::Rosen::RSOffscreenRenderThread
68 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()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/
H A Drs_uni_ui_capture.cpp98 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()
H A Drs_render_service_connection.cpp912 RSOffscreenRenderThread::Instance().PostTask(offscreenRenderTask); in TakeSurfaceCaptureForUIWithUni()
916 RSOffscreenRenderThread::Instance().InSertCaptureTask(id, offscreenRenderTask); in TakeSurfaceCaptureForUIWithUni()
919 RSOffscreenRenderThread::Instance().PostTask(offscreenRenderTask); in TakeSurfaceCaptureForUIWithUni()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/transaction/
H A Drs_interfaces.cpp359 RSOffscreenRenderThread::Instance().PostTask(offscreenRenderTask); in TakeSurfaceCaptureForUIWithoutUni()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/drawable/
H A Drs_canvas_drawing_render_node_drawable.cpp524RSOffscreenRenderThread::Instance().PostTask([image = captureImage_]() mutable { image = nullptr; … in ReleaseCaptureImage()