summaryrefslogtreecommitdiffstats
path: root/opengl/libs/GLES2_dbg/src
Commit message (Collapse)AuthorAgeFilesLines
* remove unused codeMathias Agopian2012-01-2811-8533/+0
| | | | Change-Id: If900fcc50f9ffc424e270cb6063b16a2d7bc04d3
* Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGESteve Block2012-01-081-2/+2
| | | | | | | See https://android-git.corp.google.com/g/#/c/157220 Bug: 5449033 Change-Id: Ic9c19d30693bd56755f55906127cd6bd7126096c
* Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGESteve Block2012-01-035-24/+24
| | | | | | | See https://android-git.corp.google.com/g/156016 Bug: 5449033 Change-Id: I4c4e33bb9df3e39e11cd985e193e6fbab4635298
* fix EGL debuggerMathias Agopian2011-09-194-30/+23
| | | | | | | always use GL_RGBA, GL_UNSIGNED_BYTE for screen capture and make sure to handle GL_BGRA_EXT used on some gpu. Change-Id: If9c973677fec8a5c4e72be22e7ef7d4bf5f008f4
* fix another bug that prevented the gl debugger to workMathias Agopian2011-09-011-1/+1
| | | | | | we didn't set the debug tls properly Change-Id: Iad9cc5b5d230a8eb7f680c4b70925c5e43e73051
* refactor EGL source codeMathias Agopian2011-05-161-17/+17
| | | | | no changes is functionality. split various objects into their own files. make egl_display objec's lock internal.
* GLES2Dbg: send some GL implementation constants to clientDavid Li2011-04-194-16/+47
| | | | | Change-Id: Ic6c51c09b1c3d2e1e1a28c6ed552714c3243827c Signed-off-by: David Li <davidxli@google.com>
* GLES2Dbg: initial testsDavid Li2011-04-194-18/+45
| | | | Change-Id: Ibf07eff68d39267fd5c9bec2870f59a5ae2f51e3
* GLES2Dbg: added CaptureDraw and CaptureSwap optionsDavid Li2011-04-127-47/+194
| | | | | | | | CaptureDraw specifies how many glDrawArrays/Elements to glReadPixel CaptureSwap similarly applies to eglSwapBuffers Change-Id: Ie7a7e3392b4ecdc0659dcee04f4bab97c35267dc Signed-off-by: David Li <davidxli@google.com>
* GLES2Dbg: use dump.gles2dbg file when fails to create socketDavid Li2011-04-125-26/+56
| | | | | | | | | | | | setprop debug.egl.debug_forceUseFile 1: always use file setprop debug.egl.debug_maxFileSize <int MB>: exit when reached setprop debug.egl.debug_filePath <path>: may need to make the file writable first. setprop debug.egl.debug_port <unsigned short> setprop debug.egl.debug_proc <proc cmdline>: to match debuggee process Change-Id: I34ca1f3092f3abf17e2ded9d1689d0cdef6e07e8 Signed-off-by: David Li <davidxli@google.com>
* GLES2Dbg: add EXTEND_AFTER_CALL_Debug_* macro and improve protocolDavid Li2011-04-1210-86/+202
| | | | | | | | | | To allow auto generate of Debug_glReadPixels function. Also added AfterGeneratedCall messag type, and client override of expectResponse for improving protocol. Also implemented callers for client to get shader/program iv & infolog Change-Id: I8426de0be4b7ffcb8b2b4f063ad85d19a9d2d72e Signed-off-by: David Li <davidxli@google.com>
* GLES2Dbg: change GLES2_dbg to shared libraryDavid Li2011-04-124-10/+24
| | | | | Change-Id: I493e9bff431bd939f4e80e1e9c614dd557307fa2 Signed-off-by: David Li <davidxli@google.com>
* GLES2Dbg: use 256KB chunks for lzf compressionDavid Li2011-03-284-39/+43
| | | | | | | | | | | | Data format is uint32_t totalDecompressedSize, then repeat: uint32_t chunkDecompressedSize, chunkCompressedSize, chunk data. If chunkCompressedSize == 0, then chunk is not compressed. Also start fixing integer sizes on server. On client, set endianness to match server. Change-Id: I0d5afa16976ea6019b91c4e21d284605da7e135e Signed-off-by: David Li <davidxli@google.com>
* GLESv2Dbg: ability to create GL calls from clientDavid Li2011-03-225-9/+1107
| | | | | | | | caller.cpp Is generated by generate_caller_cpp.py Hand written functions are in caller.h Change-Id: I27ed9792df52569159a2d1b8a78207c7a7518537 Signed-off-by: David Li <davidxli@google.com>
* GLES2Dbg: added SETPROP expectResponseDavid Li2011-03-2210-606/+336
| | | | | | | | to allow "stepping" in functions. Also fix bug in reference frame. Change-Id: Ia33620eaf2c5f4e615f7aad2df277b6afc617060 Signed-off-by: David Li <davidxli@google.com>
* GLES2Dbg: added reference frame for glReadPixelsDavid Li2011-03-228-44/+308
| | | | Change-Id: I37398d8d835e54a1764dfabd617fdc2c640864c2
* GLES2Dbg: use libLZF for compressing imagesDavid Li2011-03-215-132/+53
| | | | | | | liblzf is in external/liblzf, it's BSD-type licence (optionally GPL2) Change-Id: Idc7883fe2155f366cda384e64796a1493335ae4f Signed-off-by: David Li <davidxli@google.com>
* GLES2Debugger: Make command exchange async to improve performance.David Li2011-03-117-63/+93
| | | | | | | | In message loop, use select to check for available commands from client, rather than always expecting commands in eglSwapBuffers. Change-Id: Ifc34dd77c2528c8b9c71f594e3eda4f93400cd2b Signed-off-by: David Li <davidxli@google.com>
* GLES2Debugger: Added DbgContext and vertex data capturing.David Li2011-03-109-1982/+455
| | | | | | | | | Send VBO related commands to client, which tracks the state. Maintain index buffer content and vertex attrib pointer/buffer state on server. During glDrawArrays/Elements, send user memory data to client. Change-Id: Ia920e90479329b301ae4b5735e833eeb20293c94 Signed-off-by: David Li <davidxli@google.com>
* Added screenshot after glDraw* option to GLES2 DebuggerDavid Li2011-03-0410-5328/+5782
| | | | | | | | | | Also added timing mode option using utils/Timers.h. Factored out common code to reduce size. Improved Protobuf message. Uploads data from glBufferData and glBufferSubData. Change-Id: Iaae5e706235d942df81c7eada7223fb0b0583911 Signed-off-by: David Li <davidxli@google.com>
* Initial commit of GLESv2 debugger serverDavid Li2011-03-037-0/+8201
Use debug.egl.debug_proc property to match process cmdline. Binds to TCP:5039 and waits for client connection. Sends function call parameters, textures and shaders using Protobuf. Java Eclipse client plug-in is next. Change-Id: I183b755263663f87e86dde1ad12f527d0445fd57 Signed-off-by: David Li <davidxli@google.com>