Skip to content

Commit c6da590

Browse files
jinyuan-devgfxVPLsdm
authored andcommitted
[RT Common] Delete copy constructor and copy assignment for mfxSurface*Impl classes
Delete copy operations for mfxSurface*Impl classes used to manage exported surfaces.
1 parent 70e0cf7 commit c6da590

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

_studio/shared/include/libmfx_allocator_vaapi.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,9 @@ class mfxSurfaceVAAPIImpl
325325
{
326326
public:
327327

328+
mfxSurfaceVAAPIImpl(const mfxSurfaceVAAPIImpl&) = delete;
329+
mfxSurfaceVAAPIImpl& operator=(const mfxSurfaceVAAPIImpl&) = delete;
330+
328331
static mfxSurfaceVAAPIImpl* Create(const mfxSurfaceHeader& export_header, mfxFrameSurfaceInterfaceImpl* p_base_surface, std::shared_ptr<VADisplayWrapper>& display, VASurfaceID surface_id)
329332
{
330333
auto surface = new mfxSurfaceVAAPIImpl(export_header, p_base_surface, display, surface_id);

0 commit comments

Comments
 (0)