diff options
author | Siva Velusamy <vsiva@google.com> | 2011-12-08 16:01:24 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-12-08 16:01:24 -0800 |
commit | ecca6ae0e35d845d85476758b660132488722487 (patch) | |
tree | 8037f8bd6b3d25948d4e34fea62cdf498653a574 /eclipse/plugins | |
parent | 014d5290fa190c668af4deed40ce10645dc8e410 (diff) | |
parent | 1c00132f8782198b7487cae6c3476ddbe7002a53 (diff) | |
download | sdk-ecca6ae0e35d845d85476758b660132488722487.zip sdk-ecca6ae0e35d845d85476758b660132488722487.tar.gz sdk-ecca6ae0e35d845d85476758b660132488722487.tar.bz2 |
Merge "gltrace: remove old files not used anymore"
Diffstat (limited to 'eclipse/plugins')
8 files changed, 0 insertions, 732 deletions
diff --git a/eclipse/plugins/com.android.ide.eclipse.gldebugger/README.android b/eclipse/plugins/com.android.ide.eclipse.gldebugger/README.android deleted file mode 100644 index ae95463..0000000 --- a/eclipse/plugins/com.android.ide.eclipse.gldebugger/README.android +++ /dev/null @@ -1,20 +0,0 @@ -The following is taken from slide 3 & 4 of https://docs.google.com/a/google.com/present/edit?id=0AcZLV3icFYi0ZGZxa3NqZndfMGRqa2tiOXB4&authkey=CMfb8ukI&hl=en -The spec doc is at https://docs.google.com/a/google.com/document/d/1dsASXCF9Suq8KOGcxwB2mAwgdRlrFj4QhMxkfaRJlA0/edit?hl=en&authkey=CPj4tKkO# - - -Building and Running - -Debugger server is linked into EGL, code is in framework/base/opengl/libs/GLES2_dbg and already included in latest master builds, no action needed. -Use development/tools/glesv2debugger/setup.sh to build and copy the jars: libprotobuf-java-2.3.0-lite, liblzf, sdklib into development/tools/glesv2debugger/lib -Install Eclipse SDK for Eclipse: Eclipse->Help->Install New Software. Select "All Available Sites" in the "Work with:" drop down, then find "Eclipse SDK". (If Eclipse reports dependency conflicts, try install updates first) -Debugger client is an Eclipse plug-in, code is at development/tools/glesv2debugger, built in Eclipse -Optional: build glsl_compiler and copy to plug-in working directory; this is used for shader syntax check - - -"Attaching" to a Process - -adb shell setprop debug.egl.debug_proc <process name> before running process. ie: com.example.android.apis -EGL checks /proc/<proc_id>/cmdline for match during init and sets debug functions in eglMakeCurrent -EGL will bind to socket and wait for incoming connection, so need to adb forward tcp:5039 tcp:5039. Port can be overridden by adb shell setprop debug.egl.debug_port <port> -If create socket failed, EGL will try to open /data/local/tmp/dump.gles2dbg for write, and exit when 8MB is written. The relevant properties are ...debug_forceUseFile, ...debug_maxFileSize, and ...debug_filePath -Now manually start the process on device; on host, open development/tools/glesv2debugger/.project and run/debug as Eclipse application, then Window->Show View->Other->Debug->OpenGL ES 2.0 Debugger, then Connect or Open File diff --git a/eclipse/plugins/com.android.ide.eclipse.gldebugger/build.properties b/eclipse/plugins/com.android.ide.eclipse.gldebugger/build.properties index 8493552..91e1d10 100644 --- a/eclipse/plugins/com.android.ide.eclipse.gldebugger/build.properties +++ b/eclipse/plugins/com.android.ide.eclipse.gldebugger/build.properties @@ -4,7 +4,6 @@ bin.includes = plugin.xml,\ META-INF/,\
.,\
icons/,\
- contexts.xml,\
lib/host-libprotobuf-java-2.3.0-lite.jar,\
lib/liblzf.jar,\
lib/sdklib.jar,\
diff --git a/eclipse/plugins/com.android.ide.eclipse.gldebugger/contexts.xml b/eclipse/plugins/com.android.ide.eclipse.gldebugger/contexts.xml deleted file mode 100644 index 02e26e4..0000000 --- a/eclipse/plugins/com.android.ide.eclipse.gldebugger/contexts.xml +++ /dev/null @@ -1,12 +0,0 @@ -<contexts> - <context id="viewer" title="Sample View"> - <description>This is the context help for the sample view with a table viewer. It was generated by a PDE template.</description> - <topic href="/PLUGINS_ROOT/org.eclipse.platform.doc.isv/guide/ua_help_context.htm" label="Context-sensitive help"> - <enablement> - <with variable="platform"> - <test property="org.eclipse.core.runtime.isBundleInstalled" args="org.eclipse.platform.doc.isv"/> - </with> - </enablement> - </topic> - </context> -</contexts> diff --git a/eclipse/plugins/com.android.ide.eclipse.gldebugger/generate_GLEnum_java.py b/eclipse/plugins/com.android.ide.eclipse.gldebugger/generate_GLEnum_java.py deleted file mode 100755 index cf543c8..0000000 --- a/eclipse/plugins/com.android.ide.eclipse.gldebugger/generate_GLEnum_java.py +++ /dev/null @@ -1,73 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- - -# -# Copyright 2011, The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -if __name__ == "__main__": - externs = [] - lines = open("../../../frameworks/base/opengl/libs/enums.in").readlines() - output = open("src/com/android/glesv2debugger/GLEnum.java", "w") - i = 0 - output.write( -"""/* - ** Copyright 2011, The Android Open Source Project - ** - ** Licensed under the Apache License, Version 2.0 (the "License"); - ** you may not use this file except in compliance with the License. - ** You may obtain a copy of the License at - ** - ** http://www.apache.org/licenses/LICENSE-2.0 - ** - ** Unless required by applicable law or agreed to in writing, software - ** distributed under the License is distributed on an "AS IS" BASIS, - ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - ** See the License for the specific language governing permissions and - ** limitations under the License. - */ - -// auto generated by generate_GLEnum_java.py" - -package com.android.glesv2debugger; - -public enum GLEnum { -""") - - index = 0 - for line in lines: - value = line[line.find("(") + 1: line.find(",")] - name = line[line.find(",") + 1: line.find(")")] - output.write(" %s(%s),\n" % (name, value)) - - output.write(""" ; - - public final int value; - GLEnum(final int value) { - this.value = value; - } - - private static final java.util.HashMap<Integer, GLEnum> reverseMap = new java.util.HashMap<Integer, GLEnum>(); - static { - for (GLEnum e : GLEnum.values()) - reverseMap.put(e.value, e); - } - - public static GLEnum valueOf(final int value) { - return reverseMap.get(value); - } -}""") - - diff --git a/eclipse/plugins/com.android.ide.eclipse.gldebugger/generate_MessageFormatter_java.py b/eclipse/plugins/com.android.ide.eclipse.gldebugger/generate_MessageFormatter_java.py deleted file mode 100755 index dfbf2ea..0000000 --- a/eclipse/plugins/com.android.ide.eclipse.gldebugger/generate_MessageFormatter_java.py +++ /dev/null @@ -1,281 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- - -# -# Copyright 2011, The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -import os -import sys - -def RemoveAnnotation(line): - if line.find(":") >= 0: - annotation = line[line.find(":"): line.find(" ", line.find(":"))] - return line.replace(annotation, "*") - else: - return line - -if __name__ == "__main__": - externs = [] - lines = open("../../../frameworks/base/opengl/libs/GLES2_dbg/gl2_api_annotated.in").readlines() - output = open("src/com/android/glesv2debugger/MessageFormatter.java", "w") - - i = 0 - output.write( -"""/* - ** Copyright 2011, The Android Open Source Project - ** - ** Licensed under the Apache License, Version 2.0 (the "License"); - ** you may not use this file except in compliance with the License. - ** You may obtain a copy of the License at - ** - ** http://www.apache.org/licenses/LICENSE-2.0 - ** - ** Unless required by applicable law or agreed to in writing, software - ** distributed under the License is distributed on an "AS IS" BASIS, - ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - ** See the License for the specific language governing permissions and - ** limitations under the License. - */ - -// auto generated by generate_MessageFormatter_java.py" - -package com.android.glesv2debugger; - -import java.nio.ByteBuffer; - -public class MessageFormatter { - - static String formatFloats(int count, final ByteBuffer data) { - if (data.remaining() == 0) - return "{}"; - data.order(SampleView.targetByteOrder); - String ret = "{"; - for (int i = 0; i < count; i++) { - ret += Float.intBitsToFloat(data.getInt()); - if (i < count - 1) - ret += ", "; - } - return ret + "}"; - } - - static String formatInts(int count, final ByteBuffer data) { - if (data.remaining() == 0) - return "{}"; - data.order(SampleView.targetByteOrder); - String ret = "{"; - for (int i = 0; i < count; i++) { - ret += data.getInt(); - if (i < count - 1) - ret += ", "; - } - return ret + "}"; - } - - static String formatUInts(int count, final ByteBuffer data) { - if (data.remaining() == 0) - return "{}"; - data.order(SampleView.targetByteOrder); - String ret = "{"; - for (int i = 0; i < count; i++) { - long bits = data.getInt() & 0xffffffff; - ret += bits; - if (i < count - 1) - ret += ", "; - } - return ret + "}"; - } - - static String formatMatrix(int columns, int count, final ByteBuffer data) { - if (data.remaining() == 0) - return "{}"; - data.order(SampleView.targetByteOrder); - String ret = "{"; - for (int i = 0; i < count; i++) { - ret += Float.intBitsToFloat(data.getInt()); - if (i < count - 1) - ret += ", "; - if (i % columns == columns - 1) - ret += "\\n "; - } - return ret + "}"; - } - - public static String format(final DebuggerMessage.Message msg, - final boolean code) { - String str; - switch (msg.getFunction()) { -""") - #in source code these turn into program_%d etc. - nameReplaces = ["program", "shader", "texture", "buffer", "framebuffer", "renderbuffer"] - for line in lines: - if line.find("API_ENTRY(") >= 0: # a function prototype - returnType = line[0: line.find(" API_ENTRY(")].replace("const ", "") - functionName = line[line.find("(") + 1: line.find(")")] #extract GL function name - parameterList = line[line.find(")(") + 2: line.find(") {")] - - parameters = parameterList.split(',') - paramIndex = 0 - - formatString = "%s" - formatArgs = "" - if returnType != "void": - if returnType == "GLenum": - formatArgs += '\ - (code ? "%s" : GLEnum.valueOf(msg.getRet()))\n' % (functionName) - elif returnType.find("*") >= 0: - formatArgs += '\ - (code ? "%s" : "0x" + Integer.toHexString(msg.getRet()))\n' % (functionName) - else: - formatArgs += '\ - (code ? "%s" : msg.getRet())\n' % (functionName) - else: - formatArgs += '\ - (code ? "%s" : "void")\n' % (functionName) - - formatString += "(" - - if parameterList == "void": - parameters = [] - inout = "" - - paramNames = [] - - for parameter in parameters: - parameter = parameter.replace("const","") - parameter = parameter.strip() - paramType = parameter.split(' ')[0] - paramName = parameter.split(' ')[1] - annotation = "" - - formatString += "%s%s" - formatArgs += '\ - , (code ? "/*%s*/ " : "%s=")\n' % (paramName, paramName) - if parameter.find(":") >= 0: - assert inout == "" # only one parameter should be annotated - inout = paramType.split(":")[2] - annotation = paramType.split(":")[1] - paramType = paramType.split(":")[0] - count = 1 - countArg = "" - if annotation.find("*") >= 0: # [1,n] * param - count = int(annotation.split("*")[0]) - countArg = annotation.split("*")[1] - assert countArg in paramNames - elif annotation in paramNames: - count = 1 - countArg = annotation - elif annotation == "GLstring": - annotation = annotation - else: - count = int(annotation) - dataFormatter = "" - if paramType == "GLfloat": - dataFormatter = "formatFloats" - elif paramType == "GLint": - dataFormatter = "formatInts" - elif paramType == "GLuint": - dataFormatter = "formatUInts" - elif annotation == "GLstring": - assert paramType == "GLchar" - elif paramType.find("void") >= 0: - assert 1 - else: - assert 0 - if functionName.find("Matrix") >= 0: - columns = int(functionName[functionName.find("fv") - 1: functionName.find("fv")]) - assert columns * columns == count - assert countArg != "" - assert paramType == "GLfloat" - formatArgs += '\ - , (code ? "(GLfloat [])" : "") + formatMatrix(%d, %d * msg.getArg%d(), msg.getData().asReadOnlyByteBuffer())' % ( - columns, count, paramNames.index(countArg)) - elif annotation == "GLstring": - formatArgs += '\ - , (code ? "\\"" : "") + msg.getData().toStringUtf8() + (code ? "\\"" : "")' - elif paramType.find("void") >= 0: - formatArgs += '\ - , (code ? "arg%d" : "0x" + Integer.toHexString(msg.getArg%d()))' % (paramIndex, paramIndex) - elif countArg == "": - formatArgs += '\ - , (code ? "(%s [])" : "") + %s(%d, msg.getData().asReadOnlyByteBuffer())' % ( - paramType, dataFormatter, count) - else: - formatArgs += '\ - , (code ? "(%s [])" : "") + %s(%d * msg.getArg%d(), msg.getData().asReadOnlyByteBuffer())' % ( - paramType, dataFormatter, count, paramNames.index(countArg)) - else: - if paramType == "GLfloat" or paramType == "GLclampf": - formatArgs += "\ - , Float.intBitsToFloat(msg.getArg%d())" % (paramIndex) - elif paramType == "GLenum": - formatArgs += "\ - , GLEnum.valueOf(msg.getArg%d())" % (paramIndex) - elif paramType.find("*") >= 0: - formatArgs += '\ - , (code ? "arg%d" : "0x" + Integer.toHexString(msg.getArg%d()))' % (paramIndex, paramIndex) - elif paramName in nameReplaces: - formatArgs += '\ - , (code ? "%s_" : "") + msg.getArg%d()' % (paramName, paramIndex) - else: - formatArgs += "\ - , msg.getArg%d()" % (paramIndex) - if paramIndex < len(parameters) - 1: - formatString += ", " - formatArgs += '\n' - paramNames.append(paramName) - paramIndex += 1 - - - formatString += ")" - - output.write(" case %s:\n" % (functionName)) - if line.find("*") >= 0 and (line.find("*") < line.find(":") or line.find("*") > line.rfind(":")): - sys.stderr.write(line) - output.write(" // FIXME: this function uses pointers, debugger may send data in msg.data\n") - output.write('\ - str = String.format("%s",\n%s);\n\ - break;\n' % (formatString, formatArgs)) - - - output.write(""" default: - str = msg.toString(); - } - return str; - } -}""") - -''' print """/* -package GLESv2Debugger; - -public class MessageFormatterCustom { - - public static String format(final DebuggerMessage.Message msg) { - String str; - switch (msg.getFunction()) {""" - - for extern in externs: - print " case %s" % (extern) - print " // TODO:" - -print """ default: - str = msg.toString(); - } - return str; - } -} -*/""" ''' - - diff --git a/eclipse/plugins/com.android.ide.eclipse.gldebugger/generate_MessageParser_java.py b/eclipse/plugins/com.android.ide.eclipse.gldebugger/generate_MessageParser_java.py deleted file mode 100755 index b6e8282..0000000 --- a/eclipse/plugins/com.android.ide.eclipse.gldebugger/generate_MessageParser_java.py +++ /dev/null @@ -1,304 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- - -# -# Copyright 2011, The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -import os -import sys - -def RemoveAnnotation(line): - if line.find(":") >= 0: - annotation = line[line.find(":"): line.find(" ", line.find(":"))] - return line.replace(annotation, "*") - else: - return line - -if __name__ == "__main__": - externs = [] - lines = open("../../../frameworks/base/opengl/libs/GLES2_dbg/gl2_api_annotated.in").readlines() - output = open("src/com/android/glesv2debugger/MessageParser.java", "w") - - i = 0 - output.write("""\ -/* - ** Copyright 2011, The Android Open Source Project - ** - ** Licensed under the Apache License, Version 2.0 (the "License"); - ** you may not use this file except in compliance with the License. - ** You may obtain a copy of the License at - ** - ** http://www.apache.org/licenses/LICENSE-2.0 - ** - ** Unless required by applicable law or agreed to in writing, software - ** distributed under the License is distributed on an "AS IS" BASIS, - ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - ** See the License for the specific language governing permissions and - ** limitations under the License. - */ - -// auto generated by generate_MessageParser_java.py, -// which also prints skeleton code for MessageParserEx.java - -package com.android.glesv2debugger; - -import com.android.glesv2debugger.DebuggerMessage.Message; -import com.android.glesv2debugger.DebuggerMessage.Message.Function; -import com.google.protobuf.ByteString; - -import java.nio.ByteBuffer; - -public abstract class MessageParser { - - String args; - - String[] getList() - { - String arg = args; - args = args.substring(args.lastIndexOf('}') + 1); - final int comma = args.indexOf(','); - if (comma >= 0) - args = args.substring(comma + 1).trim(); - else - args = null; - - final int comment = arg.indexOf('='); - if (comment >= 0) - arg = arg.substring(comment + 1); - arg = arg.trim(); - assert arg.charAt(0) == '{'; - arg = arg.substring(1, arg.lastIndexOf('}')).trim(); - return arg.split("\\s*,\\s*"); - } - - ByteString parseFloats(int count) { - ByteBuffer buffer = ByteBuffer.allocate(count * 4); - buffer.order(SampleView.targetByteOrder); - String [] arg = getList(); - for (int i = 0; i < count; i++) - buffer.putFloat(Float.parseFloat(arg[i].trim())); - buffer.rewind(); - return ByteString.copyFrom(buffer); - } - - ByteString parseInts(int count) { - ByteBuffer buffer = ByteBuffer.allocate(count * 4); - buffer.order(SampleView.targetByteOrder); - String [] arg = getList(); - for (int i = 0; i < count; i++) - buffer.putInt(Integer.parseInt(arg[i].trim())); - buffer.rewind(); - return ByteString.copyFrom(buffer); - } - - ByteString parseUInts(int count) { - ByteBuffer buffer = ByteBuffer.allocate(count * 4); - buffer.order(SampleView.targetByteOrder); - String [] arg = getList(); - for (int i = 0; i < count; i++) - buffer.putInt((int)(Long.parseLong(arg[i].trim()) & 0xffffffff)); - buffer.rewind(); - return ByteString.copyFrom(buffer); - } - - ByteString parseMatrix(int columns, int count) { - return parseFloats(columns * columns * count); - } - - ByteString parseString() { - // TODO: escape sequence and proper string literal - String arg = args.substring(args.indexOf('"') + 1, args.lastIndexOf('"')); - args = args.substring(args.lastIndexOf('"')); - int comma = args.indexOf(','); - if (comma >= 0) - args = args.substring(comma + 1).trim(); - else - args = null; - return ByteString.copyFromUtf8(arg); - } - - String getArgument() - { - final int comma = args.indexOf(','); - String arg = null; - if (comma >= 0) - { - arg = args.substring(0, comma); - args = args.substring(comma + 1); - } - else - { - arg = args; - args = null; - } - final int comment = arg.indexOf('='); - if (comment >= 0) - arg = arg.substring(comment + 1); - return arg.trim(); - } - - int parseArgument() - { - String arg = getArgument(); - if (arg.startsWith("GL_")) - return GLEnum.valueOf(arg).value; - else if (arg.toLowerCase().startsWith("0x")) - return Integer.parseInt(arg.substring(2), 16); - else - return Integer.parseInt(arg); - } - - int parseFloat() - { - String arg = getArgument(); - return Float.floatToRawIntBits(Float.parseFloat(arg)); - } - - public void parse(final Message.Builder builder, String string) { - int lparen = string.indexOf("("), rparen = string.lastIndexOf(")"); - String s = string.substring(0, lparen).trim(); - args = string.substring(lparen + 1, rparen); - String[] t = s.split(" "); - Function function = Function.valueOf(t[t.length - 1]); - builder.setFunction(function); - switch (function) { -""") - - abstractParsers = "" - - for line in lines: - if line.find("API_ENTRY(") >= 0: # a function prototype - returnType = line[0: line.find(" API_ENTRY(")].replace("const ", "") - functionName = line[line.find("(") + 1: line.find(")")] #extract GL function name - parameterList = line[line.find(")(") + 2: line.find(") {")] - - parameters = parameterList.split(',') - paramIndex = 0 - - #if returnType != "void": - #else: - - if parameterList == "void": - parameters = [] - inout = "" - - paramNames = [] - abstract = False - argumentSetters = "" - output.write("\ - case %s:\n" % (functionName)) - - for parameter in parameters: - parameter = parameter.replace("const","") - parameter = parameter.strip() - paramType = parameter.split(' ')[0] - paramName = parameter.split(' ')[1] - annotation = "" - - argumentParser = "" - - if parameter.find(":") >= 0: - dataSetter = "" - assert inout == "" # only one parameter should be annotated - inout = paramType.split(":")[2] - annotation = paramType.split(":")[1] - paramType = paramType.split(":")[0] - count = 1 - countArg = "" - if annotation.find("*") >= 0: # [1,n] * param - count = int(annotation.split("*")[0]) - countArg = annotation.split("*")[1] - assert countArg in paramNames - elif annotation in paramNames: - count = 1 - countArg = annotation - elif annotation == "GLstring": - annotation = annotation - else: - count = int(annotation) - - if paramType == "GLfloat": - argumentParser = "parseFloats" - elif paramType == "GLint": - argumentParser = "parseInts" - elif paramType == "GLuint": - argumentParser = "parseUInts" - elif annotation == "GLstring": - assert paramType == 'GLchar' - elif paramType.find("void") >= 0: - assert 1 - else: - assert 0 - - if functionName.find('Matrix') >= 0: - columns = int(functionName[functionName.find("fv") - 1: functionName.find("fv")]) - assert columns * columns == count - assert countArg != "" - assert paramType == "GLfloat" - dataSetter = "builder.setData(parseMatrix(%d, builder.getArg%d()));" % ( - columns, paramNames.index(countArg)) - elif annotation == "GLstring": - dataSetter = "builder.setData(parseString());" - elif paramType.find("void") >= 0: - dataSetter = "// TODO" - abstract = True - elif countArg == "": - dataSetter = "builder.setData(%s(%d));" % (argumentParser, count) - else: - dataSetter = "builder.setData(%s(%d * builder.getArg%d()));" % ( - argumentParser, count, paramNames.index(countArg)) - argumentSetters += "\ - %s // %s %s\n" % (dataSetter, paramType, paramName) - else: - if paramType == "GLfloat" or paramType == "GLclampf": - argumentSetters += "\ - builder.setArg%d(parseFloat()); // %s %s\n" % ( - paramIndex, paramType, paramName) - elif paramType.find("*") >= 0: - argumentSetters += "\ - // TODO: %s %s\n" % (paramType, paramName) - abstract = True - else: - argumentSetters += "\ - builder.setArg%d(parseArgument()); // %s %s\n" % ( - paramIndex, paramType, paramName) - paramNames.append(paramName) - paramIndex += 1 - - if not abstract: - output.write("%s" % argumentSetters) - else: - output.write("\ - parse_%s(builder);\n" % functionName) - abstractParsers += "\ - abstract void parse_%s(Message.Builder builder);\n" % functionName - print """\ - @Override - void parse_%s(Message.Builder builder) { -%s } -""" % (functionName, argumentSetters) # print skeleton code for MessageParserEx - - output.write("\ - break;\n") - output.write("""\ - default: - assert false; - } - } -""") - output.write(abstractParsers) - output.write("\ -}""") diff --git a/eclipse/plugins/com.android.ide.eclipse.gldebugger/plugin.xml b/eclipse/plugins/com.android.ide.eclipse.gldebugger/plugin.xml index 2fc644d..98115ea 100644 --- a/eclipse/plugins/com.android.ide.eclipse.gldebugger/plugin.xml +++ b/eclipse/plugins/com.android.ide.eclipse.gldebugger/plugin.xml @@ -39,12 +39,6 @@ </perspectiveExtension>
</extension>
<extension
- point="org.eclipse.help.contexts">
- <contexts
- file="contexts.xml">
- </contexts>
- </extension>
- <extension
point="org.eclipse.ui.editors">
<editor
class="com.android.ide.eclipse.gltrace.editors.GLFunctionTraceViewer"
diff --git a/eclipse/plugins/com.android.ide.eclipse.gldebugger/setup.sh b/eclipse/plugins/com.android.ide.eclipse.gldebugger/setup.sh deleted file mode 100755 index 839019d..0000000 --- a/eclipse/plugins/com.android.ide.eclipse.gldebugger/setup.sh +++ /dev/null @@ -1,35 +0,0 @@ -source ../../../build/envsetup.sh -pushd ../../../ - -# need lunch before building jars -if [ -z "$TARGET_PRODUCT" ]; then - lunch -fi - -pushd external/liblzf/ -mm -popd - -pushd external/protobuf/ -mm -popd - -pushd sdk/sdkmanager/libs/sdklib -mm -popd - -# glsl_compiler is optional -# make glsl_compiler -j3 - -popd - -mkdir -p lib -cp "$ANDROID_HOST_OUT/framework/host-libprotobuf-java-2.3.0-lite.jar" lib/ -cp "$ANDROID_HOST_OUT/framework/liblzf.jar" lib/ -cp "$ANDROID_HOST_OUT/framework/sdklib.jar" lib/ - -# optional; usually for linux -#cp "$ANDROID_HOST_OUT/bin/glsl_compiler" ~/ - -# optional; usually for mac, need to replace eclipse.app with actual path -#cp "$ANDROID_HOST_OUT/bin/glsl_compiler" eclipse.app/Contents/MacOS |