diff options
author | Leon Scroggins III <scroggo@google.com> | 2022-07-14 13:08:37 -0400 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-07-29 22:35:02 +0000 |
commit | 88f517ca87a0a5e93447ac0a89b08a4b8dee8151 (patch) | |
tree | 84700a7325da0a26265fa307ee865e8071b871ac | |
parent | 8b4ab703efb1097702eef9f6a73814221cf08200 (diff) | |
download | skia-88f517ca87a0a5e93447ac0a89b08a4b8dee8151.tar.gz |
Define SK_SUPPORT_LEGACY_ALPHA_BITMAP_AS_COVERAGE
This flag, along with I01fadaed52eecc42416deb2307d03499bca85a4c (in
upstream Skia), restores the old behavior of treating alpha images as
coverage in the CPU backend. This fixes a regression in a technique apps
use to apply rounded corners to images.
Bug: 231400686
Test: GM in Skia
Change-Id: I4857da2c3dd54e64ca86eb1ea2122096625f8662
(cherry picked from commit 66e866e7f699d0bf3f7c0adde896fdbab7ecab67)
Merged-In: I4857da2c3dd54e64ca86eb1ea2122096625f8662
-rw-r--r-- | include/config/SkUserConfigManual.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/config/SkUserConfigManual.h b/include/config/SkUserConfigManual.h index 5f11d96168..528e406431 100644 --- a/include/config/SkUserConfigManual.h +++ b/include/config/SkUserConfigManual.h @@ -32,4 +32,8 @@ #define SK_DISABLE_DAA // skbug.com/6886 #define SK_ABORT(...) __android_log_assert(nullptr, "skia", ##__VA_ARGS__) + + // TODO (b/239048372): Remove this flag when we can safely migrate apps to the + // new behavior. + #define SK_SUPPORT_LEGACY_ALPHA_BITMAP_AS_COVERAGE #endif // SkUserConfigManual_DEFINED |