]> git.saurik.com Git - android/aapt.git/commitdiff
Adding a new <uses-gl-texture/> tag, to be used to enable apps to specify
authorDan Morrill <morrildl@google.com>
Wed, 13 Oct 2010 21:33:43 +0000 (14:33 -0700)
committerDan Morrill <morrildl@google.com>
Wed, 13 Oct 2010 21:33:43 +0000 (14:33 -0700)
filtering based on support for OpenGL ES texture and texture compression
formats.

Change-Id: I993209a673579b296007ae2ba830d0275770dd11

Command.cpp

index f71ebb98344f289a7801ddc1058269c4f76cb2a2..873ebac7249f806ee0889bfb4a48a5a63e97a4b5 100644 (file)
@@ -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;