Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(549)

Unified Diff: include/core/SkData.h

Issue 2206633004: Move off SK_SUPPORT_LEGACY_DATA_FACTORIES. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Gotta catch 'em all. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gyp/skia_for_android_framework_defines.gypi ('k') | include/gpu/GrResourceKey.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « gyp/skia_for_android_framework_defines.gypi ('k') | include/gpu/GrResourceKey.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698