Loading opengl/libs/GLES2_dbg/Android.mk +0 −1 Original line number Diff line number Diff line Loading @@ -8,7 +8,6 @@ LOCAL_SRC_FILES := \ src/debugger_message.pb.cpp \ src/egl.cpp \ src/server.cpp \ src/texture.cpp \ src/vertex.cpp LOCAL_C_INCLUDES := \ Loading opengl/libs/GLES2_dbg/generate_api_cpp.py +6 −7 Original line number Diff line number Diff line Loading @@ -31,11 +31,11 @@ def generate_api(lines): externs = [] i = 0 # these have been hand written skipFunctions = ["glTexImage2D", "glTexSubImage2D", "glReadPixels", "glDrawArrays", "glDrawElements"] skipFunctions = ["glReadPixels", "glDrawArrays", "glDrawElements"] # these have an EXTEND_Debug_* macro for getting data extendFunctions = ["glCopyTexImage2D", "glCopyTexSubImage2D", "glShaderSource"] extendFunctions = ["glCopyTexImage2D", "glCopyTexSubImage2D", "glShaderSource", "glTexImage2D", "glTexSubImage2D"] # these also needs to be forwarded to DbgContext contextFunctions = ["glUseProgram", "glEnableVertexAttribArray", "glDisableVertexAttribArray", Loading Loading @@ -67,8 +67,7 @@ def generate_api(lines): externs.append(extern) print "%s Debug_%s(%s)\n{" % (returnType, functionName, RemoveAnnotation(parameterList)) print """ glesv2debugger::Message msg; const bool expectResponse = false;""" print " glesv2debugger::Message msg;" if parameterList == "void": parameters = [] Loading Loading @@ -159,8 +158,8 @@ def generate_api(lines): print getData if functionName in extendFunctions: print " EXTEND_Debug_%s;" % (functionName) print " int * ret = MessageLoop(caller, msg, expectResponse," print " glesv2debugger::Message_Function_%s);" % (functionName) print " int * ret = MessageLoop(caller, msg, glesv2debugger::Message_Function_%s);"\ % (functionName) if returnType != "void": if returnType == "GLboolean": print " return static_cast<GLboolean>(reinterpret_cast<int>(ret));" Loading opengl/libs/GLES2_dbg/generate_debugger_message_proto.py +1 −0 Original line number Diff line number Diff line Loading @@ -134,6 +134,7 @@ message Message { Capture = 0; // arg0 = true | false TimeMode = 1; // arg0 = SYSTEM_TIME_* in utils/Timers.h ExpectResponse = 2; // arg0 = enum Function, arg1 = true/false }; optional Prop prop = 21; // used with SETPROP, value in arg0 optional float clock = 22; // wall clock in seconds Loading Loading
opengl/libs/GLES2_dbg/Android.mk +0 −1 Original line number Diff line number Diff line Loading @@ -8,7 +8,6 @@ LOCAL_SRC_FILES := \ src/debugger_message.pb.cpp \ src/egl.cpp \ src/server.cpp \ src/texture.cpp \ src/vertex.cpp LOCAL_C_INCLUDES := \ Loading
opengl/libs/GLES2_dbg/generate_api_cpp.py +6 −7 Original line number Diff line number Diff line Loading @@ -31,11 +31,11 @@ def generate_api(lines): externs = [] i = 0 # these have been hand written skipFunctions = ["glTexImage2D", "glTexSubImage2D", "glReadPixels", "glDrawArrays", "glDrawElements"] skipFunctions = ["glReadPixels", "glDrawArrays", "glDrawElements"] # these have an EXTEND_Debug_* macro for getting data extendFunctions = ["glCopyTexImage2D", "glCopyTexSubImage2D", "glShaderSource"] extendFunctions = ["glCopyTexImage2D", "glCopyTexSubImage2D", "glShaderSource", "glTexImage2D", "glTexSubImage2D"] # these also needs to be forwarded to DbgContext contextFunctions = ["glUseProgram", "glEnableVertexAttribArray", "glDisableVertexAttribArray", Loading Loading @@ -67,8 +67,7 @@ def generate_api(lines): externs.append(extern) print "%s Debug_%s(%s)\n{" % (returnType, functionName, RemoveAnnotation(parameterList)) print """ glesv2debugger::Message msg; const bool expectResponse = false;""" print " glesv2debugger::Message msg;" if parameterList == "void": parameters = [] Loading Loading @@ -159,8 +158,8 @@ def generate_api(lines): print getData if functionName in extendFunctions: print " EXTEND_Debug_%s;" % (functionName) print " int * ret = MessageLoop(caller, msg, expectResponse," print " glesv2debugger::Message_Function_%s);" % (functionName) print " int * ret = MessageLoop(caller, msg, glesv2debugger::Message_Function_%s);"\ % (functionName) if returnType != "void": if returnType == "GLboolean": print " return static_cast<GLboolean>(reinterpret_cast<int>(ret));" Loading
opengl/libs/GLES2_dbg/generate_debugger_message_proto.py +1 −0 Original line number Diff line number Diff line Loading @@ -134,6 +134,7 @@ message Message { Capture = 0; // arg0 = true | false TimeMode = 1; // arg0 = SYSTEM_TIME_* in utils/Timers.h ExpectResponse = 2; // arg0 = enum Function, arg1 = true/false }; optional Prop prop = 21; // used with SETPROP, value in arg0 optional float clock = 22; // wall clock in seconds Loading