diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-04-24 21:51:58 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-04-24 21:51:58 +0000 |
commit | 1c675c979b35801ef26058c18fc193bf4db0f3d6 (patch) | |
tree | ea10d60fd0df75d4d9abfe13ed34b24928c74b05 | |
parent | ded203b202ba0584eb14cee9870bd138e058265f (diff) | |
download | gyp-1c675c979b35801ef26058c18fc193bf4db0f3d6.tar.gz |
Deprecate SaveFlags use in the public SkCanvas API.
Because we still have internal users for now (to support the deprecated
mode), this CL introduces an external-only variant of deprecation.
Chromium is no longer using the deprecated methods, but Android may need
to suppress SK_ATTR_EXTERNALLY_DEPRECATED warnings.
R=reed@google.com, robertphillips@google.com, scroggo@google.com, bungeman@google.com, mtklein@google.com
Author: fmalita@chromium.org
Review URL: https://codereview.chromium.org/246023008
git-svn-id: http://skia.googlecode.com/svn/trunk/gyp@14367 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r-- | common.gypi | 1 | ||||
-rw-r--r-- | common_conditions.gypi | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/common.gypi b/common.gypi index 2a5bbd4..0846fef 100644 --- a/common.gypi +++ b/common.gypi @@ -12,6 +12,7 @@ 'target_defaults': { 'defines': [ + 'SK_INTERNAL', 'SK_GAMMA_SRGB', 'SK_GAMMA_APPLY_TO_A8', 'SK_SCALAR_TO_FLOAT_EXCLUDED', # temporary to allow Chrome to call SkFloatToScalar diff --git a/common_conditions.gypi b/common_conditions.gypi index 175b8b0..ed30245 100644 --- a/common_conditions.gypi +++ b/common_conditions.gypi @@ -309,6 +309,8 @@ 'SK_SUPPORT_LEGACY_BLURDRAWLOOPERCONSTRUCTORS', # Needed until we fix skbug.com/2440. 'SK_SUPPORT_LEGACY_CLIPTOLAYERFLAG', + # Transitional, for deprecated SkCanvas::SaveFlags methods. + 'SK_ATTR_DEPRECATED=SK_NOTHING_ARG1', ], }], |