summaryrefslogtreecommitdiff
path: root/opengl/tests/gl2_basic/gl2_basic.cpp
Commit message (Collapse)AuthorAgeFilesLines
* EGL: Plumb HDR metadataCourtney Goeltzenleuchter2018-03-101-2/+39
| | | | | | | | | | | | | | | | | | 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
* Use -Werror in frameworks/native/opengl/testsChih-Hung Hsieh2017-11-151-1/+0
| | | | | | | | | | * 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
* Mark libEGL, GLESv1_CM, GLESv2, and GLESv3 as LLNDKJiyong Park2017-09-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* Fix unused parameter warningCourtney Goeltzenleuchter2017-09-191-1/+1
| | | | | | | | Test: make Bug: 29940137 Merged-In: Iac7c58674f4191baa28e8141851bd74ab2329771 Change-Id: Iac7c58674f4191baa28e8141851bd74ab2329771 (cherry picked from commit 10d17f78f3e63e93b03c86a8c013584a8a7e21f3)
* Print ImplementationANDROID extensions as wellCourtney Goeltzenleuchter2017-09-191-1/+3
| | | | | | | | | | | 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)
* Dump EGL Extension listCourtney Goeltzenleuchter2017-04-101-0/+6
| | | | | | | | 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
* Restore old OpenGL testsAndy McFadden2014-03-061-3/+4
| | | | | | | | | | | | | | | | | | 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
* remove libui dependency on libEGLMathias Agopian2012-02-241-1/+1
| | | | Change-Id: I1194f04085637d5c384e134967249430cc43b6ee
* update EGL headers to the latestMathias Agopian2010-06-091-1/+0
| | | | | | note that this doesn't update the EGL stubs. Change-Id: I00274431a490249d93eb6b5ba13f274b7f2682ae
* Print out EGL configuration info for the config we've chosen.Jack Palevich2009-09-281-53/+57
| | | | | Don't ask for PBuffer support, since we don't actually use pbuffers, and some drivers might not support them.
* Print out all available EGL configurations.Jack Palevich2009-09-281-8/+82
|
* Use EGLUtils to simplify choosing a configuration.Jack Palevich2009-09-251-55/+36
| | | | Doesn't actually select anything, possibly due to device driver errors.
* Create samples showing how to call OpenGL from JNI libraries.Jack Palevich2009-09-231-0/+1
|
* Draw a green triangle using OpenGL 2.0 APIs.Jack Palevich2009-09-181-112/+235
|
* Add additional error checking, exit early if errors occur.Jack Palevich2009-09-171-18/+59
|
* Add EGL call error checking.Jack Palevich2009-09-161-4/+52
|
* Simple app to create a gl2 context and dump the strings.Jason Sams2009-09-011-0/+85