Hash :
85ae836f
Author :
Date :
2020-03-30T16:03:47
GL: Implement EGL_EXT_image_dma_buf_import Add support for the EGL_EXT_image_dma_buf_import on EGL implementations that support it natively. This extensin is used on ozone to import native compositing buffers. This patch also adds new tokens in EGL_EXT_image_dma_buf_import_modifiers which are used in eglCreateImageKHR. BUG=angleproject:4529 Change-Id: I49bff831b591fb19fcdcec1145c7a61f5d8020c4 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2128190 Commit-Queue: Jiajia Qin <jiajia.qin@intel.com> Reviewed-by: Jonah Ryan-Davis <jonahr@google.com> Reviewed-by: Geoff Lang <geofflang@chromium.org>
//
// Copyright 2018 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.
//
// ExternalImageSiblingEGL.h: Defines the ExternalImageSiblingEGL interface to abstract all external
// image siblings in the EGL backend
#ifndef LIBANGLE_RENDERER_GL_EGL_EXTERNALIMAGESIBLINGEGL_H_
#define LIBANGLE_RENDERER_GL_EGL_EXTERNALIMAGESIBLINGEGL_H_
#include "libANGLE/renderer/ImageImpl.h"
namespace rx
{
class ExternalImageSiblingEGL : public ExternalImageSiblingImpl
{
public:
ExternalImageSiblingEGL() {}
~ExternalImageSiblingEGL() override {}
virtual EGLClientBuffer getBuffer() const = 0;
virtual void getImageCreationAttributes(std::vector<EGLint> *outAttributes) const {}
};
} // namespace rx
#endif // LIBANGLE_RENDERER_GL_EGL_EXTERNALIMAGESIBLINGEGL_H_