2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
11 #include "utils/BufferObject.h"
19 class CGBMBufferObject
: public CBufferObject
23 ~CGBMBufferObject() override
;
26 static std::unique_ptr
<CBufferObject
> Create();
27 static void Register();
29 // IBufferObject overrides via CBufferObject
30 bool CreateBufferObject(uint32_t format
, uint32_t width
, uint32_t height
) override
;
31 void DestroyBufferObject() override
;
32 uint8_t* GetMemory() override
;
33 void ReleaseMemory() override
;
34 std::string
GetName() const override
{ return "CGBMBufferObject"; }
36 // CBufferObject overrides
37 uint64_t GetModifier() override
;
40 gbm_device
* m_device
{nullptr};
41 gbm_bo
* m_bo
{nullptr};
46 uint8_t* m_map
{nullptr};
47 void* m_map_data
{nullptr};