Edit

kc3-lang/angle/src/libANGLE/MemoryObject.h

Branch :

  • Show log

    Commit

  • Author : Michael Spang
    Date : 2019-04-03 14:57:35
    Hash : fb201c5e
    Message : Implement resource management for GL_EXT_memory_object This implements glCreateMemoryObjectsEXT, glDeleteMemoryObjectsEXT, and glIsMemoryObjectEXT. It's not possible to do anything useful with them yet. Bug: angleproject:3289 Change-Id: I8882b657e9de564b5f97f8dea87838f67b1928f8 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1552025 Commit-Queue: Michael Spang <spang@chromium.org> Reviewed-by: Jamie Madill <jmadill@chromium.org>

  • src/libANGLE/MemoryObject.h
  • //
    // Copyright 2019 The ANGLE Project Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style license that can be
    // found in the LICENSE file.
    //
    // MemoryObject.h: Defines the gl::MemoryObject class [EXT_external_objects]
    
    #ifndef LIBANGLE_MEMORYOBJECT_H_
    #define LIBANGLE_MEMORYOBJECT_H_
    
    #include "angle_gl.h"
    #include "common/angleutils.h"
    #include "libANGLE/Error.h"
    #include "libANGLE/RefCountObject.h"
    
    namespace rx
    {
    class GLImplFactory;
    class MemoryObjectImpl;
    }  // namespace rx
    
    namespace gl
    {
    
    class MemoryObject final : public RefCountObject
    {
      public:
        MemoryObject(rx::GLImplFactory *factory, GLuint id);
        ~MemoryObject() override;
    
        void onDestroy(const Context *context) override;
    
      private:
        std::unique_ptr<rx::MemoryObjectImpl> mImplementation;
    };
    
    }  // namespace gl
    
    #endif  // LIBANGLE_MEMORYOBJECT_H_