diff options
author | mtklein <mtklein@chromium.org> | 2016-09-09 11:07:45 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-09 11:07:45 -0700 |
commit | b37c034ac8ad590c70ceac9811ba42a0bf34642c (patch) | |
tree | f1f1c3243e3f8e3f1122bdccdcd5a9fe7bcf0345 | |
parent | de68d6c4616d86621373d88100002ddfdb9c08e3 (diff) |
GN: port a few missing Android bits from GYP.
The SK_GAMMA_ defines change text rendering on Android.
This is how they're set in GYP for Android... everyone else is default (sRGB).
Linking AndroidSkDebugToStdOut.o causes SkDebugf to go to both logcat and
stdout on Android. Without it, it only goes to logcat. The file has no effect
on non-Android platforms.
BUG=skia:
Review-Url: https://codereview.chromium.org/2323353002
-rw-r--r-- | BUILD.gn | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -78,6 +78,12 @@ config("skia_private") { ] defines = [ "SK_GAMMA_APPLY_TO_A8" ] + if (is_android) { + defines += [ + "SK_GAMMA_EXPONENT=1.4", + "SK_GAMMA_CONTRAST=0.0", + ] + } } # Any code that's linked into Skia-the-library should use this config via += skia_library_configs. @@ -609,6 +615,7 @@ if (skia_enable_tools) { sources = [ "src/images/SkForceLinking.cpp", "src/utils/SkMultiPictureDocumentReader.cpp", # TODO(halcanary): move to tools? + "tools/AndroidSkDebugToStdOut.cpp", "tools/CrashHandler.cpp", "tools/LsanSuppressions.cpp", "tools/ProcStats.cpp", |