summaryrefslogtreecommitdiffstats
path: root/opengl/libs/GLES2/gl2.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add runtime debugging capabilities to OpenGLRomain Guy2012-10-181-37/+0
| | | | | | | | | | | | | | | The shell property debug.egl.trace can now be set to: 0 disables tracing 1 logs all GL calls error checks glGetError after every GL call, logs a stack trace on error systrace logs each GL call to systrace Change-Id: I34a2a2d4e19c373fd9eaa1b0cd93e67c87378996
* Revert "Add GL Error logs (temporary)"Chet Haase2012-10-101-9/+1
| | | | This reverts commit 2da2c15068327a4fdad411f638905abcb2209d8a.
* Add GL Error logs (temporary)Chet Haase2012-10-041-1/+9
| | | | | | Adding logs to tell which specific methods throw OpenGL errors. Change-Id: I1d73c7566ed1ea6610392020411762c6255a0ede
* Re-enable FAST_TLS in gl2 codeChet Haase2012-09-281-1/+1
| | | | | | | Temporarily changed USE_FAST_TLS_KEY ifdef during debugging. Changing it back now. Change-Id: I7c2fcf7265b3d545e31ff7683bd7614100fad3e5
* New compile-time flags to make debugging easier for us poor soulsRomain Guy2012-09-271-1/+11
| | | | | | Bug #7195815 Change-Id: I23e7ac991891b9586cb8ed20b1305c8b1b3e2b43
* Add compile-time option to systrace GL-ES callsJesse Hall2012-08-131-0/+11
| | | | Change-Id: Ibec103bbf159626ad9745d0e071192ad424bc0e9
* Don't wrap EGLImageKHR and EGLSyncKHR anymoreMathias Agopian2012-02-141-24/+0
| | | | | | | | this simplify our EGL wrapper implementation a lot. This wrapping is no longer needed now that we can only support a single underlaying EGL implementation. Change-Id: I8213df7ac69daac447f1fe6e37044b78aac4e9a9
* add support for GL_EXT_debug_markerMathias Agopian2012-01-291-0/+14
| | | | | | | | | | | | | | This extension is always added to the GL_EXTENSIONS extension string for the current GL context, regardless of if it's supported by the h/w driver. The extension itself will be handled by GLES_trace (eventually), when GLES_trace is not enabled, it'll result to a no-op. If the h/w implementation has this extension, we'll call that version instead of our dummy version. Change-Id: Ie5dd3387c4d45cd5ed5f03b73bda6045620a96bc
* Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGESteve Block2012-01-031-1/+1
| | | | | | | See https://android-git.corp.google.com/g/156016 Bug: 5449033 Change-Id: I4c4e33bb9df3e39e11cd985e193e6fbab4635298
* am 4eb1ad5e: am 524a6d8e: Merge "better fix for [3028370] GL get error ↵Mathias Agopian2010-09-231-0/+1
|\ | | | | | | | | | | | | | | | | should return a valid error if no context is bound." into gingerbread Merge commit '4eb1ad5e98c7b36f7ac4ec8c3270f9763afd107e' * commit '4eb1ad5e98c7b36f7ac4ec8c3270f9763afd107e': better fix for [3028370] GL get error should return a valid error if no context is bound.
| * better fix for [3028370] GL get error should return a valid error if no ↵Mathias Agopian2010-09-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | context is bound. it turns out that we cannot return INVALID_OPERATION from glGetError() because the GL spec says that it must be called in a loop until it returns GL_NO_ERROR. now, we always return 0 from GL functions called from a thread with no context bound. This means that glGetError() will return NO_ERROR in this case, which is better than returning a random value (which could trap the app in a loop). if this happens in the main thread of a process, we LOG an error message once. Change-Id: Id59620e675a890286ef62a257c02b06e0fdcaf69
* | Fix tons of bugs and add new text rendering support.Romain Guy2010-08-101-2/+18
|/ | | | Change-Id: I326c66b10784006f6df2f12d38e120cef94cd0d7
* Fix Android's glEGLImageTargetRenderbufferOES() wrapperMathias Agopian2010-03-291-1/+1
| | | | | | | glEGLImageTargetRenderbufferOES() pass the wrapped EGLImage to the implementation, rather than the unwrapped one. Change-Id: I149f9ed73e6ab9089110600e1db4311ba7a8c83a
* Use the TLS register if HAVE_ARM_TLS_REGISTER is definedMathias Agopian2009-10-191-3/+11
| | | | | this will be needed for SMP, but would improve dispatching GL calls a bit on armv6 and above.
* fix [2187212] add support for GLESv2 dispatch based on TLSMathias Agopian2009-10-141-3/+3
| | | | | | | | | | | | | Instead of using a different function pointer table for ES 1.x and ES 2.x, we use a single one that is the union (sort|uniq) of both tables. Two instances of this table are initialized with pointers to GL ES 1.x and GL ES 2.x entry-points. When a context is created, we store its version number and when it is bound to a thread we set the approruiate table based on the stored version. This introduce no penalty while dispatching gl calls to the right API version. [Pending Dr No approval for MR1]
* Added most of the support needed for GLES 2.xMathias Agopian2009-05-271-0/+111