Remove last of SK_SUPPORT_LEGACY_IMAGE_ENCODER_CLASS
Approval from https://review.skia.org/5006
TBR=reed@google.com
Change-Id: Icdd54be420260ecd2f94f2f1fa76caba34e6a50e
Reviewed-on: https://skia-review.googlesource.com/6840
Reviewed-by: Hal Canary <halcanary@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
diff --git a/include/core/SkImageEncoder.h b/include/core/SkImageEncoder.h
index f2b0620..e4f746a 100644
--- a/include/core/SkImageEncoder.h
+++ b/include/core/SkImageEncoder.h
@@ -39,16 +39,4 @@
return src.peekPixels(&pixmap) && SkEncodeImage(dst, pixmap, f, q);
}
-//TODO(halcanary): remove this code once all changes land.
-#ifdef SK_SUPPORT_LEGACY_IMAGE_ENCODER_CLASS
-class SkImageEncoder {
-public:
- enum Type {
- kPNG_Type = (int)SkEncodedImageFormat::kPNG,
- };
- static bool EncodeStream(SkWStream* dst, const SkBitmap& bm, Type t, int quality) {
- return SkEncodeImage(dst, bm, (SkEncodedImageFormat)t, quality);
- }
-};
-#endif // SK_SUPPORT_LEGACY_IMAGE_ENCODER_CLASS
#endif // SkImageEncoder_DEFINED
diff --git a/public.bzl b/public.bzl
index ce01b7d..a6f9333 100644
--- a/public.bzl
+++ b/public.bzl
@@ -588,7 +588,6 @@
# Turn on a few Google3-specific build fixes.
"GOOGLE3",
# Staging flags for API changes
- "SK_SUPPORT_LEGACY_IMAGE_ENCODER_CLASS",
# Temporarily Disable analytic AA for Google3
"SK_NO_ANALYTIC_AA",
"SK_SUPPORT_LEGACY_BITMAP_SETPIXELREF",