aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gn/flutter_defines.gni1
-rw-r--r--include/codec/SkCodec.h5
2 files changed, 6 insertions, 0 deletions
diff --git a/gn/flutter_defines.gni b/gn/flutter_defines.gni
index f0339765dd..08c9b535f9 100644
--- a/gn/flutter_defines.gni
+++ b/gn/flutter_defines.gni
@@ -4,6 +4,7 @@
# found in the LICENSE file.
flutter_defines = [
"SK_DISABLE_EXPLICIT_GPU_RESOURCE_ALLOCATION",
+ "SK_LEGACY_SKCODEC_NONE_ENUM",
# Flutter always wants this https://github.com/flutter/flutter/issues/11402
"SK_ENABLE_DUMP_GPU",
diff --git a/include/codec/SkCodec.h b/include/codec/SkCodec.h
index fc58db942d..623a35fe1c 100644
--- a/include/codec/SkCodec.h
+++ b/include/codec/SkCodec.h
@@ -594,6 +594,11 @@ public:
// is residing in dst's memory.
static constexpr int kNoFrame = -1;
+ // This transitional definition was added in August 2018, and will eventually be removed.
+#ifdef SK_LEGACY_SKCODEC_NONE_ENUM
+ static constexpr int kNone = kNoFrame;
+#endif
+
/**
* Information about individual frames in a multi-framed image.
*/