1
// Copyright 2019 The ANGLE Project Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
5
// MemoryObjectGL.h: Defines the class interface for MemoryObjectGL,
6
// implementing MemoryObjectImpl.
8
#ifndef LIBANGLE_RENDERER_GL_MEMORYOBJECTGL_H_
9
#define LIBANGLE_RENDERER_GL_MEMORYOBJECTGL_H_
11
#include "libANGLE/renderer/MemoryObjectImpl.h"
16
class MemoryObjectGL : public MemoryObjectImpl
19
MemoryObjectGL(GLuint memoryObject);
20
~MemoryObjectGL() override;
22
void onDestroy(const gl::Context *context) override;
24
angle::Result importFd(gl::Context *context,
26
gl::HandleType handleType,
29
GLuint getMemoryObjectID() const;
37
#endif // LIBANGLE_RENDERER_GL_MEMORYOBJECTGL_H_