~mmach/netext73/webkit2gtk

« back to all changes in this revision

Viewing changes to Source/ThirdParty/ANGLE/src/libANGLE/renderer/gl/MemoryObjectGL.h

  • Committer: mmach
  • Date: 2023-06-16 17:21:37 UTC
  • Revision ID: netbit73@gmail.com-20230616172137-2rqx6yr96ga9g3kp
1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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.
 
4
//
 
5
// MemoryObjectGL.h: Defines the class interface for MemoryObjectGL,
 
6
// implementing MemoryObjectImpl.
 
7
 
 
8
#ifndef LIBANGLE_RENDERER_GL_MEMORYOBJECTGL_H_
 
9
#define LIBANGLE_RENDERER_GL_MEMORYOBJECTGL_H_
 
10
 
 
11
#include "libANGLE/renderer/MemoryObjectImpl.h"
 
12
 
 
13
namespace rx
 
14
{
 
15
 
 
16
class MemoryObjectGL : public MemoryObjectImpl
 
17
{
 
18
  public:
 
19
    MemoryObjectGL(GLuint memoryObject);
 
20
    ~MemoryObjectGL() override;
 
21
 
 
22
    void onDestroy(const gl::Context *context) override;
 
23
 
 
24
    angle::Result importFd(gl::Context *context,
 
25
                           GLuint64 size,
 
26
                           gl::HandleType handleType,
 
27
                           GLint fd) override;
 
28
 
 
29
    GLuint getMemoryObjectID() const;
 
30
 
 
31
  private:
 
32
    GLuint mMemoryObject;
 
33
};
 
34
 
 
35
}  // namespace rx
 
36
 
 
37
#endif  // LIBANGLE_RENDERER_GL_MEMORYOBJECTGL_H_