Home
last modified time | relevance | path

Searched refs:RsVulkanContext (Results 1 – 25 of 33) sorted by relevance

12

/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/ohos/backend/
H A Drs_vulkan_context.h219 friend class RsVulkanContext; variable
268 class RsVulkanContext {
270 static RsVulkanContext& GetSingleton();
271 RsVulkanContext();
272 ~RsVulkanContext() {}; in ~RsVulkanContext()
274 RsVulkanContext(const RsVulkanContext&) = delete;
275 RsVulkanContext &operator=(const RsVulkanContext&) = delete;
277 RsVulkanContext(const RsVulkanContext&&) = delete;
278 RsVulkanContext &operator=(const RsVulkanContext&&) = delete;
H A Drs_vulkan_context.cpp39 thread_local std::shared_ptr<Drawing::GPUContext> RsVulkanContext::drawingContext_ = nullptr;
41 thread_local bool RsVulkanContext::isProtected_ = false;
431 return (PFN_vkVoidFunction)RsVulkanContext::HookedVkQueueSubmit; in CreateSkiaGetProc()
556 RsVulkanContext::RsVulkanContext() in RsVulkanContext() function in OHOS::Rosen::RsVulkanContext
569 RsVulkanContext& RsVulkanContext::GetSingleton() in GetSingleton()
571 static RsVulkanContext singleton {}; in GetSingleton()
575 RsVulkanInterface& RsVulkanContext::GetRsVulkanInterface() in GetRsVulkanInterface()
583 bool isProtected = RsVulkanContext::GetSingleton().GetIsProtected(); in HookedVkQueueSubmit()
633 std::shared_ptr<Drawing::GPUContext> RsVulkanContext::GetDrawingContext() in GetDrawingContext()
643 void RsVulkanContext::SetIsProtected(bool isProtected) in SetIsProtected()
[all …]
H A Dnative_buffer_utils.cpp32 bool GetNativeBufferFormatProperties(RsVulkanContext& vkContext, VkDevice device, OH_NativeBuffer* … in GetNativeBufferFormatProperties()
50 bool CreateVkImage(RsVulkanContext& vkContext, VkImage* image, in CreateVkImage()
107 bool AllocateDeviceMemory(RsVulkanContext& vkContext, VkDeviceMemory* memory, VkImage& image, in AllocateDeviceMemory()
162 bool BindImageMemory(VkDevice device, RsVulkanContext& vkContext, VkImage& image, VkDeviceMemory& m… in BindImageMemory()
191 auto& vkContext = RsVulkanContext::GetSingleton(); in MakeFromNativeWindowBuffer()
252 new VulkanCleanupHelper(RsVulkanContext::GetSingleton(), in MakeFromNativeWindowBuffer()
295 auto& vkContext = RsVulkanContext::GetSingleton(); in MakeBackendTextureFromNativeBuffer()
H A Dnative_buffer_utils.h38 VulkanCleanupHelper(RsVulkanContext& vkContext, VkImage image, VkDeviceMemory memory,
50 RsVulkanMemStat& memStat = RsVulkanContext::GetSingleton().GetRsVkMemStat(); in ~VulkanCleanupHelper()
H A Drs_surface_ohos_vulkan.cpp115 …VkSemaphore& semaphore, RsVulkanContext& vkContext, NativeBufferUtils::NativeSurfaceInfo& nativeSu… in CreateVkSemaphore()
214 auto& vkContext = RsVulkanContext::GetSingleton(); in RequestFrame()
252 auto& vkContext = RsVulkanContext::GetSingleton().GetRsVulkanInterface(); in FlushFrame()
299 auto err = RsVulkanContext::HookedVkQueueSignalReleaseImageOHOS( in FlushFrame()
H A Drs_surface_ohos_vulkan.h106 RsVulkanContext& vkContext, NativeBufferUtils::NativeSurfaceInfo& nativeSurface);
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/platform/ohos/backend/
H A Drs_vulkan_context_test.cpp202 RsVulkanContext::isProtected_ = true;
204 RsVulkanContext::HookedVkQueueSubmit(VK_NULL_HANDLE, 1, &pSubmits, VK_NULL_HANDLE);
205 EXPECT_TRUE(RsVulkanContext::isProtected_ == true);
220RsVulkanContext::protectedDrawingContext_ = rsProtectedVulkanInterface.CreateDrawingContext(false,…
221 RsVulkanContext::drawingContext_ = rsVulkanInterface.CreateDrawingContext();
238RsVulkanContext::protectedDrawingContext_ = rsProtectedVulkanInterface.CreateDrawingContext(false,…
239 RsVulkanContext::drawingContext_ = rsVulkanInterface.CreateDrawingContext();
251 RsVulkanContext rsVulkanContext;
253 EXPECT_TRUE(RsVulkanContext::isProtected_ == true);
H A Dnative_buffer_utils_test.cpp52 RsVulkanContext::GetSingleton(), vkTextureInfo->vkImage, vkTextureInfo->vkAlloc.memory);
103 auto vkContext = RsVulkanContext::GetSingleton();
/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/drawing_engine/drawing_surface/
H A Dsurface_ohos_vulkan.cpp132 …VkSemaphore* semaphore, RsVulkanContext& vkContext, NativeBufferUtils::NativeSurfaceInfo& nativeSu… in CreateVkSemaphore()
177 drContext_ = RsVulkanContext::GetSingleton().CreateDrawingContext(); in NativeRequestFrame()
216 auto& vkContext = RsVulkanContext::GetSingleton(); in NativeRequestFrame()
268 auto& vkContext = RsVulkanContext::GetSingleton().GetRsVulkanInterface(); in NativeFlushFrame()
303 auto err = RsVulkanContext::HookedVkQueueSignalReleaseImageOHOS( in NativeFlushFrame()
H A Dsurface_ohos_vulkan.h51 …VkSemaphore* semaphore, RsVulkanContext& vkContext, NativeBufferUtils::NativeSurfaceInfo& nativeSu…
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/render_context/
H A Drender_context.cpp314 drawingContext = RsVulkanContext::GetSingleton().CreateDrawingContext(); in SetUpGpuContext()
515 if (RsVulkanContext::GetSingleton().GetMemoryHandler()) { in GetShaderCacheSize()
516 return RsVulkanContext::GetSingleton().GetMemoryHandler()->QuerryShader(); in GetShaderCacheSize()
534 if (RsVulkanContext::GetSingleton().GetMemoryHandler()) { in CleanAllShaderCache()
535 return RsVulkanContext::GetSingleton().GetMemoryHandler()->ClearShader(); in CleanAllShaderCache()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/modifier/
H A Drs_extended_modifier.cpp102 auto cleanUpHelper = new NativeBufferUtils::VulkanCleanupHelper(RsVulkanContext::GetSingleton(), in CreateSurface()
109 auto gpuContext = RsVulkanContext::GetSingleton().CreateDrawingContext(); in CreateSurface()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/nativebufferutils_fuzzer/
H A Dnativebufferutils_fuzzer.cpp71 RsVulkanContext::GetSingleton(), vkTextureInfo->vkImage, vkTextureInfo->vkAlloc.memory); in DoSomethingInterestingWithMyAPI()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rsvulkancontext_fuzzer/
H A Drsvulkancontext_fuzzer.cpp85 auto& rsVulkanContext = OHOS::Rosen::RsVulkanContext::GetSingleton(); in DoSomethingInterestingWithMyAPI()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/common/
H A Drs_background_thread.cpp133 auto gpuContext = RsVulkanContext::GetSingleton().CreateDrawingContext(); in CreateShareGPUContext()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/
H A Drs_base_render_engine.cpp87 skContext_ = RsVulkanContext::GetSingleton().CreateDrawingContext(independentContext); in Init()
108 skContext_ = RsVulkanContext::GetSingleton().CreateDrawingContext(); in Init()
136 … captureSkContext_ = RsVulkanContext::GetSingleton().CreateDrawingContext(independentContext); in InitCapture()
283 skContext_ = RsVulkanContext::GetSingleton().CreateDrawingContext( in RequestFrame()
H A Drs_vk_image_manager.cpp67 new NativeBufferUtils::VulkanCleanupHelper(RsVulkanContext::GetSingleton(), in Create()
H A Drs_hardware_thread.cpp115 RsVulkanContext::GetSingleton().SetIsProtected(true); in Start()
545 RsVulkanContext::GetSingleton().SetIsProtected(isProtected); in Redraw()
548 RsVulkanContext::GetSingleton().SetIsProtected(false); in Redraw()
H A Drs_surface_capture_task_parallel.cpp583 auto cleanUpHelper = new NativeBufferUtils::VulkanCleanupHelper(RsVulkanContext::GetSingleton(), in CreateSurfaceSyncCopyTask()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/parallel_render/
H A Drs_sub_thread.cpp329 std::string vulkanVersion = RsVulkanContext::GetSingleton().GetVulkanVersion(); in CreateShareGrContext()
336 …if (!gpuContext->BuildFromVK(RsVulkanContext::GetSingleton().GetGrVkBackendContext(useHBackendCont… in CreateShareGrContext()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/create_pixelmap_surface/src/
H A Dpixel_map_from_surface.cpp375 auto cleanUpHelper = new NativeBufferUtils::VulkanCleanupHelper(RsVulkanContext::GetSingleton(), in DrawImageRectVK()
428 new NativeBufferUtils::VulkanCleanupHelper(RsVulkanContext::GetSingleton(), in CreateDrawingImage()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rssurfaceohosvulkan_fuzzer/
H A Drssurfaceohosvulkan_fuzzer.cpp297 const auto& vkContext = RsVulkanContext::GetSingleton(); in DoCreateVkSemaphore()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/
H A Drs_image_base.cpp502RsVulkanContext::GetSingleton(), vkTextureInfo->vkImage, vkTextureInfo->vkAlloc.memory); in MakeFromTextureForVK()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/pipeline/
H A Drs_draw_cmd.cpp367 … cleanUpHelper_ = new NativeBufferUtils::VulkanCleanupHelper(RsVulkanContext::GetSingleton(), in MakeFromTextureForVK()
996RsVulkanContext::GetSingleton(), vkTextureInfo->vkImage, vkTextureInfo->vkAlloc.memory))) { in DrawWithVulkan()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/drawable/
H A Drs_ui_first_surface_render_node_drawable.cpp324 … cacheCleanupHelper_ = new NativeBufferUtils::VulkanCleanupHelper(RsVulkanContext::GetSingleton(), in InitCacheSurface()

12