aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core
diff options
context:
space:
mode:
authorGravatar bungeman <bungeman@google.com>2016-07-29 10:47:45 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-07-29 10:47:45 -0700
commitaa8f39402c1b52202cb06e2c1c247ca4bd5e8afc (patch)
treebf120e523ba78546fd08410901e51b9b712e06b7 /include/core
parent31bc7df59b2cafeaf13bc3cd44a1a3ba3c54308e (diff)
Conditionally define SK_SUPPORT_LEGACY_DATA_FACTORIES.
In order to remove this define it will first need to be defined in Chromium. However, doing so causes redefinition warnings as errors. Only define this macro if it is not already defined to avoid this. TBR=reed This doesn't change any API. Review-Url: https://codereview.chromium.org/2198453002
Diffstat (limited to 'include/core')
-rw-r--r--include/core/SkData.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/core/SkData.h b/include/core/SkData.h
index 3457fcbfea..e34d861675 100644
--- a/include/core/SkData.h
+++ b/include/core/SkData.h
@@ -14,7 +14,9 @@
class SkStream;
+#ifndef SK_SUPPORT_LEGACY_DATA_FACTORIES
#define SK_SUPPORT_LEGACY_DATA_FACTORIES
+#endif
/**
* SkData holds an immutable data buffer. Not only is the data immutable,