aboutsummaryrefslogtreecommitdiffhomepage
path: root/platform_tools/android/launcher
diff options
context:
space:
mode:
authorGravatar scroggo <scroggo@google.com>2014-12-10 10:23:04 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-12-10 10:23:06 -0800
commit6cfce1b7b4ad546b02823a1a0bbbda2c17b688f5 (patch)
treec2c2f6bcc68e1f5c879089fa9f5f8a44a40437e8 /platform_tools/android/launcher
parent96472deea70169396b8e1f576e470138f55fdb1f (diff)
Change how SkDebugf is sent to stdout on Android.
Previously, a function was called using dlsym in skia_launcher. Add a static initializer that changes the setting, and include that for the tools we automate for testing. Also only do va_copy if we actually use it. BUG=skia:2454 Review URL: https://codereview.chromium.org/753543003
Diffstat (limited to 'platform_tools/android/launcher')
-rw-r--r--platform_tools/android/launcher/skia_launcher.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/platform_tools/android/launcher/skia_launcher.cpp b/platform_tools/android/launcher/skia_launcher.cpp
index 746d470a3c..6cd900cbe0 100644
--- a/platform_tools/android/launcher/skia_launcher.cpp
+++ b/platform_tools/android/launcher/skia_launcher.cpp
@@ -98,17 +98,6 @@ int main(int argc, const char** argv) {
return -1;
}
- // find the address of the SkPrintToConsole function
- void (*app_SkDebugToStdOut)(bool);
- *(void **) (&app_SkDebugToStdOut) = dlsym(skiaLibrary, "AndroidSkDebugToStdOut");
-
- if (app_SkDebugToStdOut) {
- (*app_SkDebugToStdOut)(true);
- } else {
- printf("WARNING: Unable to redirect output to the console.\n");
- printf("WARNING: %s\n", dlerror());
- }
-
// pass all additional arguments to the main function
return launch_app(app_main, argc - 1, ++argv);
}