Home
last modified time | relevance | path

Searched refs:cGpuContext (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/
H A Ddrawing_gpu_context.cpp24 static GPUContext* CastToGPUContext(OH_Drawing_GpuContext* cGpuContext) in CastToGPUContext() argument
26 return reinterpret_cast<GPUContext*>(cGpuContext); in CastToGPUContext()
43 void OH_Drawing_GpuContextDestroy(OH_Drawing_GpuContext* cGpuContext) in OH_Drawing_GpuContextDestroy() argument
45 if (cGpuContext == nullptr) { in OH_Drawing_GpuContextDestroy()
48 delete CastToGPUContext(cGpuContext); in OH_Drawing_GpuContextDestroy()
49 cGpuContext = nullptr; in OH_Drawing_GpuContextDestroy()
H A Ddrawing_surface.cpp39 static GPUContext* CastToGpuContext(OH_Drawing_GpuContext* cGpuContext) in CastToGpuContext() argument
41 return reinterpret_cast<GPUContext*>(cGpuContext); in CastToGpuContext()
44 OH_Drawing_Surface* OH_Drawing_SurfaceCreateFromGpuContext(OH_Drawing_GpuContext* cGpuContext, in OH_Drawing_SurfaceCreateFromGpuContext() argument
47 if (cGpuContext == nullptr) { in OH_Drawing_SurfaceCreateFromGpuContext()
53 std::shared_ptr<Surface> surface = Surface::MakeRenderTarget(CastToGpuContext(cGpuContext), in OH_Drawing_SurfaceCreateFromGpuContext()