/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/ohos/backend/ |
H A D | rs_vulkan_context.h | 219 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 D | rs_vulkan_context.cpp | 39 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 D | native_buffer_utils.cpp | 32 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 D | native_buffer_utils.h | 38 VulkanCleanupHelper(RsVulkanContext& vkContext, VkImage image, VkDeviceMemory memory, 50 RsVulkanMemStat& memStat = RsVulkanContext::GetSingleton().GetRsVkMemStat(); in ~VulkanCleanupHelper()
|
H A D | rs_surface_ohos_vulkan.cpp | 115 …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 D | rs_surface_ohos_vulkan.h | 106 RsVulkanContext& vkContext, NativeBufferUtils::NativeSurfaceInfo& nativeSurface);
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/platform/ohos/backend/ |
H A D | rs_vulkan_context_test.cpp | 202 RsVulkanContext::isProtected_ = true; 204 RsVulkanContext::HookedVkQueueSubmit(VK_NULL_HANDLE, 1, &pSubmits, VK_NULL_HANDLE); 205 EXPECT_TRUE(RsVulkanContext::isProtected_ == true); 220 …RsVulkanContext::protectedDrawingContext_ = rsProtectedVulkanInterface.CreateDrawingContext(false,… 221 RsVulkanContext::drawingContext_ = rsVulkanInterface.CreateDrawingContext(); 238 …RsVulkanContext::protectedDrawingContext_ = rsProtectedVulkanInterface.CreateDrawingContext(false,… 239 RsVulkanContext::drawingContext_ = rsVulkanInterface.CreateDrawingContext(); 251 RsVulkanContext rsVulkanContext; 253 EXPECT_TRUE(RsVulkanContext::isProtected_ == true);
|
H A D | native_buffer_utils_test.cpp | 52 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 D | surface_ohos_vulkan.cpp | 132 …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 D | surface_ohos_vulkan.h | 51 …VkSemaphore* semaphore, RsVulkanContext& vkContext, NativeBufferUtils::NativeSurfaceInfo& nativeSu…
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/render_context/ |
H A D | render_context.cpp | 314 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 D | rs_extended_modifier.cpp | 102 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 D | nativebufferutils_fuzzer.cpp | 71 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 D | rsvulkancontext_fuzzer.cpp | 85 auto& rsVulkanContext = OHOS::Rosen::RsVulkanContext::GetSingleton(); in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/common/ |
H A D | rs_background_thread.cpp | 133 auto gpuContext = RsVulkanContext::GetSingleton().CreateDrawingContext(); in CreateShareGPUContext()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/ |
H A D | rs_base_render_engine.cpp | 87 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 D | rs_vk_image_manager.cpp | 67 new NativeBufferUtils::VulkanCleanupHelper(RsVulkanContext::GetSingleton(), in Create()
|
H A D | rs_hardware_thread.cpp | 115 RsVulkanContext::GetSingleton().SetIsProtected(true); in Start() 545 RsVulkanContext::GetSingleton().SetIsProtected(isProtected); in Redraw() 548 RsVulkanContext::GetSingleton().SetIsProtected(false); in Redraw()
|
H A D | rs_surface_capture_task_parallel.cpp | 583 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 D | rs_sub_thread.cpp | 329 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 D | pixel_map_from_surface.cpp | 375 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 D | rssurfaceohosvulkan_fuzzer.cpp | 297 const auto& vkContext = RsVulkanContext::GetSingleton(); in DoCreateVkSemaphore()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/ |
H A D | rs_image_base.cpp | 502 … RsVulkanContext::GetSingleton(), vkTextureInfo->vkImage, vkTextureInfo->vkAlloc.memory); in MakeFromTextureForVK()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/pipeline/ |
H A D | rs_draw_cmd.cpp | 367 … cleanUpHelper_ = new NativeBufferUtils::VulkanCleanupHelper(RsVulkanContext::GetSingleton(), in MakeFromTextureForVK() 996 … RsVulkanContext::GetSingleton(), vkTextureInfo->vkImage, vkTextureInfo->vkAlloc.memory))) { in DrawWithVulkan()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/drawable/ |
H A D | rs_ui_first_surface_render_node_drawable.cpp | 324 … cacheCleanupHelper_ = new NativeBufferUtils::VulkanCleanupHelper(RsVulkanContext::GetSingleton(), in InitCacheSurface()
|