summaryrefslogtreecommitdiff
path: root/opengl/tests/gl2_basic/gl2_basic.cpp
AgeCommit message (Collapse)Author
2018-03-10EGL: Plumb HDR metadataCourtney Goeltzenleuchter
HDR metadata comes in bit by bit via eglSurfaceAttribute. Don't want to call native_window_set_buffers_smpte2086_metadata for every piece, instead wait until eglSwapBuffers and call native_window_set_buffers_smpte2086_metadata then. Does require changing the state of the surface, so some const goes away. Bug: 63710530 Test: adb -d shell am start -n \ com.drawelements.deqp/android.app.NativeActivity \ -e cmdLine '"deqp --deqp-case=dEQP-EGL.functional.hdr_metadata.* \ --deqp-log-filename=/sdcard/dEQP-Log.qpa"' Test: adb shell /data/nativetest/test-opengl-gl2_basic/test-opengl-gl2_basic Test: adb shell /data/nativetest/test-opengl-gl_basic/test-opengl-gl_basic Change-Id: I2e428ec18737f6caa8c0e1893705b7796fd77272
2017-11-15Use -Werror in frameworks/native/opengl/testsChih-Hung Hsieh
* Remove or comment out unused local variables. * Remove unused function. * Cast print argument type to fix format mismatch warning. Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: I81e80849ac36288932df235cb0d63bd870357d86
2017-09-20Mark libEGL, GLESv1_CM, GLESv2, and GLESv3 as LLNDKJiyong Park
They are used by libRSDriver and libRS_internal which are VNDK-SP libraries. Therefore, the EGL/GLES libs must be LLNDK or VNDK-SP. We choose to make them as LLNDK since they already have stable ABIs (as they are NDK). In addition, two more functions of libEGL are exposed to vendors eglQueryStringImplementationANDROID and eglDupNativeFenceFDANDROID are non-NDK symbols but are being used by libgui, which is a library marked with vendor_available:true. In order to provide the symbols to the library, they are added to the map.txt file and tagged as "# vndk" so that they are exposed only when built for vendor libs (and hidden when built for NDK). Furthermore, eglQueryStringImplementationANDROID is changed to C-symbol in order to be mentioned in the map.txt file, where C++ mangled symbol name can't be used. Bug: 64425518 Test: BOARD_VNDK_VERSION=current m -j libRSDriver.vendor Test: BOARD_VNDK_VERSION=current m -j libRS_internal.vendor Merged-In: I4d5bcd5f72fb05a7908887f5192de70fd1d8c8f1 Change-Id: I4d5bcd5f72fb05a7908887f5192de70fd1d8c8f1 (cherry picked from commit 00b15b8f223976d016e16536e4720771ef634695)
2017-09-19Fix unused parameter warningCourtney Goeltzenleuchter
Test: make Bug: 29940137 Merged-In: Iac7c58674f4191baa28e8141851bd74ab2329771 Change-Id: Iac7c58674f4191baa28e8141851bd74ab2329771 (cherry picked from commit 10d17f78f3e63e93b03c86a8c013584a8a7e21f3)
2017-09-19Print ImplementationANDROID extensions as wellCourtney Goeltzenleuchter
Test: adb shell /system/bin/test-opengl-gl2_basic Now includes extension list from eglQueryStringImplementationANDROID Bug: 29940137 Merged-In: I7aae05f7dbc07a17f9d35fe93f929d9dfd8f0d55 Change-Id: I7aae05f7dbc07a17f9d35fe93f929d9dfd8f0d55 (cherry picked from commit e29ff8f973f7dacb9e263375962140911ae191e3)
2017-04-10Dump EGL Extension listCourtney Goeltzenleuchter
EGL has it's own extensions, so dump as part of gl2_basic test. Test: adb shell /system/bin/test-opengl-gl2_basic Bug: 36258948 Change-Id: Ifcac48a8f05a3194dfe1583701f7bd6e18d7c38d
2014-03-06Restore old OpenGL testsAndy McFadden
These tests call android_createDisplaySurface() to get a FramebufferNativeWindow that is passed to EGL. This relies on the existence of the framebuffer HAL, which is not supported on many recent devices. This change adds a new "window surface" object that the tests can use to get a window from SurfaceFlinger instead. All tests except for the HWC tests now appear to do things. The HWC tests don't do anything useful, but they no longer depend on the android_createDisplaySurface() function. Bug 13323813 Change-Id: I2cbfbacb3452fb658c29e945b0c7ae7c94c1a4ba
2012-02-24remove libui dependency on libEGLMathias Agopian
Change-Id: I1194f04085637d5c384e134967249430cc43b6ee
2010-06-09update EGL headers to the latestMathias Agopian
note that this doesn't update the EGL stubs. Change-Id: I00274431a490249d93eb6b5ba13f274b7f2682ae
2009-09-28Print out EGL configuration info for the config we've chosen.Jack Palevich
Don't ask for PBuffer support, since we don't actually use pbuffers, and some drivers might not support them.
2009-09-28Print out all available EGL configurations.Jack Palevich
2009-09-25Use EGLUtils to simplify choosing a configuration.Jack Palevich
Doesn't actually select anything, possibly due to device driver errors.
2009-09-23Create samples showing how to call OpenGL from JNI libraries.Jack Palevich
2009-09-18Draw a green triangle using OpenGL 2.0 APIs.Jack Palevich
2009-09-17Add additional error checking, exit early if errors occur.Jack Palevich
2009-09-16Add EGL call error checking.Jack Palevich
2009-09-01Simple app to create a gl2 context and dump the strings.Jason Sams