Chromium Code Reviews| Index: include/core/SkData.h |
| diff --git a/include/core/SkData.h b/include/core/SkData.h |
| index e34d861675bae812f3397017a4f87b5c337348b0..4306208f69e44bfdb023bb5e74450f376948c636 100644 |
| --- a/include/core/SkData.h |
| +++ b/include/core/SkData.h |
| @@ -14,10 +14,6 @@ |
| 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, |
| * but the actual ptr that is returned (by data() or bytes()) is guaranteed |
| @@ -71,7 +67,9 @@ public: |
| * effectively returning 0 == memcmp(...) |
| */ |
| bool equals(const SkData* other) const; |
| +#ifdef SK_SUPPORT_LEGACY_DATA_FACTORIES |
|
reed1
2016/08/02 21:11:25
why is this guy guarded?
bungeman-skia
2016/08/02 21:29:56
This has caused some rather awkward code in Chromi
|
| bool equals(sk_sp<const SkData>& other) const { return this->equals(other.get()); } |
| +#endif |
| /** |
| * Function that, if provided, will be called when the SkData goes out |