Home
last modified time | relevance | path

Searched refs:nativeSurface (Results 1 – 8 of 8) sorted by relevance

/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/ohos/backend/
H A Drs_surface_ohos_vulkan.cpp126 nativeSurface.fence->Wait(-1); in CreateVkSemaphore()
136 importSemaphoreFdInfo.fd = nativeSurface.fence->Dup(); in CreateVkSemaphore()
143 nativeSurface.fence->Wait(-1); in CreateVkSemaphore()
187 if (nativeSurface.drawingSurface == nullptr) { in RequestFrame()
189 nativeSurface.window = mNativeWindow; in RequestFrame()
190 nativeSurface.graphicColorGamut = colorSpace_; in RequestFrame()
193 || !nativeSurface.drawingSurface) { in RequestFrame()
208 nativeSurface.drawingSurface->ClearDrawingArea(); in RequestFrame()
212 auto status = nativeSurface.fence->GetStatus(); in RequestFrame()
218 nativeSurface.drawingSurface->Wait(1, semaphore); in RequestFrame()
[all …]
H A Dnative_buffer_utils.cpp183 NativeSurfaceInfo& nativeSurface, int width, int height, bool isProtected) in MakeFromNativeWindowBuffer() argument
221 …auto skColorSpace = RenderContext::ConvertColorGamutToSkColorSpace(nativeSurface.graphicColorGamut… in MakeFromNativeWindowBuffer()
244 nativeSurface.drawingSurface = Drawing::Surface::MakeFromBackendTexture( in MakeFromNativeWindowBuffer()
254 if (nativeSurface.drawingSurface) { in MakeFromNativeWindowBuffer()
255 SKResourceManager::Instance().HoldResource(nativeSurface.drawingSurface); in MakeFromNativeWindowBuffer()
258 nativeSurface.image = image; in MakeFromNativeWindowBuffer()
259 NativeObjectUnreference(nativeSurface.nativeWindowBuffer); in MakeFromNativeWindowBuffer()
261 nativeSurface.nativeWindowBuffer = nativeWindowBuffer; in MakeFromNativeWindowBuffer()
H A Dnative_buffer_utils.h103 NativeSurfaceInfo& nativeSurface, int width, int height, bool isProtected = false);
H A Drs_surface_ohos_vulkan.h106 RsVulkanContext& vkContext, NativeBufferUtils::NativeSurfaceInfo& nativeSurface);
/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/drawing_engine/drawing_surface/
H A Dsurface_ohos_vulkan.cpp147 importSemaphoreFdInfo.fd = nativeSurface.fence->Dup(); in CreateVkSemaphore()
193 if (nativeSurface.drawingSurface == nullptr) { in NativeRequestFrame()
194 nativeSurface.window = mNativeWindow_; in NativeRequestFrame()
195 nativeSurface.graphicColorGamut = colorSpace_; in NativeRequestFrame()
197 drContext_, nativeWindowBuffer, nativeSurface, width, height)) { in NativeRequestFrame()
203 if (!nativeSurface.drawingSurface) { in NativeRequestFrame()
213 nativeSurface.fence = std::make_unique<SyncFence>(fenceFd); in NativeRequestFrame()
214 auto status = nativeSurface.fence->GetStatus(); in NativeRequestFrame()
218 CreateVkSemaphore(&semaphore, vkContext, nativeSurface); in NativeRequestFrame()
219 nativeSurface.drawingSurface->Wait(1, semaphore); in NativeRequestFrame()
[all …]
H A Dsurface_ohos_vulkan.h51 …phore* semaphore, RsVulkanContext& vkContext, NativeBufferUtils::NativeSurfaceInfo& nativeSurface);
/ohos5.0/foundation/multimedia/av_codec/test/unittest/video_test/vcodec_framework_test/func_sample/mock/inner/
H A Dvideodec_inner_mock.cpp126 sptr<Surface> nativeSurface = decSurface->GetSurface(); in SetOutputSurface() local
127 if (videoDec_ != nullptr && nativeSurface != nullptr) { in SetOutputSurface()
128 return videoDec_->SetOutputSurface(nativeSurface); in SetOutputSurface()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rssurfaceohosvulkan_fuzzer/
H A Drssurfaceohosvulkan_fuzzer.cpp296 NativeBufferUtils::NativeSurfaceInfo nativeSurface; in DoCreateVkSemaphore() local
299 rsSurfaceOhosVulkan->CreateVkSemaphore(semaphore, vkContext, nativeSurface); in DoCreateVkSemaphore()