summaryrefslogtreecommitdiff
path: root/tools/aapt/Command.cpp
diff options
context:
space:
mode:
author Dan Morrill <morrildl@google.com> 2010-10-13 15:23:27 -0700
committer Android Git Automerger <android-git-automerger@android.com> 2010-10-13 15:23:27 -0700
commitb58af2b8b3871436942d0e2c878c906bffaa2fb0 (patch)
treebedff3eeabf2f1173dcd8dcb5153058c4f39ca09 /tools/aapt/Command.cpp
parent89b73a75467d85c58467c5b8c080c77d25860fe0 (diff)
parent5c62ab0af9dadc3bccdad7b01c3ae17266f0b0e1 (diff)
am 5c62ab0a: Merge "Adding a new <uses-gl-texture/> tag, to be used to enable apps to specify filtering based on support for OpenGL ES texture and texture compression formats." into gingerbread
Merge commit '5c62ab0af9dadc3bccdad7b01c3ae17266f0b0e1' into gingerbread-plus-aosp * commit '5c62ab0af9dadc3bccdad7b01c3ae17266f0b0e1': Adding a new <uses-gl-texture/> tag, to be used to enable apps to specify
Diffstat (limited to 'tools/aapt/Command.cpp')
-rw-r--r--tools/aapt/Command.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/aapt/Command.cpp b/tools/aapt/Command.cpp
index f71ebb98344f..873ebac7249f 100644
--- a/tools/aapt/Command.cpp
+++ b/tools/aapt/Command.cpp
@@ -871,6 +871,15 @@ int doDump(Bundle* bundle)
error.string());
goto bail;
}
+ } else if (tag == "uses-gl-texture") {
+ String8 name = getAttribute(tree, NAME_ATTR, &error);
+ if (name != "" && error == "") {
+ printf("uses-gl-texture:'%s'\n", name.string());
+ } else {
+ fprintf(stderr, "ERROR getting 'android:name' attribute: %s\n",
+ error.string());
+ goto bail;
+ }
}
} else if (depth == 3 && withinApplication) {
withinActivity = false;