Edit

kc3-lang/angle/src/common/android_util.h

Branch :

  • Show log

    Commit

  • Author : Geoff Lang
    Date : 2019-01-31 14:47:07
    Hash : 009696c5
    Message : Vulkan: Support EGL_ANDROID_image_native_buffer on Android. BUG=angleproject:2668 BUG=angleproject:3121 Change-Id: I0dfb2ec0737ebd963b0fadb78cf720a90874f00b Reviewed-on: https://chromium-review.googlesource.com/c/1452264 Commit-Queue: Geoff Lang <geofflang@chromium.org> Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org>

  • src/common/android_util.h
  • //
    // 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.
    //
    
    // android_util.h: Utilities for the using the Android platform
    
    #ifndef COMMON_ANDROIDUTIL_H_
    #define COMMON_ANDROIDUTIL_H_
    
    #include <EGL/egl.h>
    #include "angle_gl.h"
    
    struct ANativeWindowBuffer;
    struct AHardwareBuffer;
    
    namespace angle
    {
    
    namespace android
    {
    
    struct ANativeWindowBuffer *ClientBufferToANativeWindowBuffer(EGLClientBuffer clientBuffer);
    
    void GetANativeWindowBufferProperties(const struct ANativeWindowBuffer *buffer,
                                          int *width,
                                          int *height,
                                          int *depth,
                                          int *pixelFormat);
    GLenum NativePixelFormatToGLInternalFormat(int pixelFormat);
    
    struct AHardwareBuffer *ANativeWindowBufferToAHardwareBuffer(
        struct ANativeWindowBuffer *windowBuffer);
    
    }  // namespace android
    }  // namespace angle
    
    #endif  // COMMON_ANDROIDUTIL_H_