aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkMallocPixelRef.cpp
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-04-24 22:48:00 -0700
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-04-27 14:45:53 +0000
commite51125557f28c2fc3dfbf4a8553a7c06bc1a0286 (patch)
tree33a8b0fb47879d70324fa2da427ea41edbf574f7 /src/core/SkMallocPixelRef.cpp
parent4f7d97c16fd159f72d2ad9c105542e2c6c097ad6 (diff)
remove legacy code
Bug: skia: Change-Id: I719f68489e9295ec652ccb04de3b10632df534fa Reviewed-on: https://skia-review.googlesource.com/14226 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'src/core/SkMallocPixelRef.cpp')
-rw-r--r--src/core/SkMallocPixelRef.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/core/SkMallocPixelRef.cpp b/src/core/SkMallocPixelRef.cpp
index f49c1caec6..cdc555b748 100644
--- a/src/core/SkMallocPixelRef.cpp
+++ b/src/core/SkMallocPixelRef.cpp
@@ -171,12 +171,3 @@ SkMallocPixelRef::~SkMallocPixelRef() {
size_t SkMallocPixelRef::getAllocatedSizeInBytes() const {
return this->info().getSafeSize(this->rowBytes());
}
-
-#ifdef SK_SUPPORT_LEGACY_PIXELREFFACTORY
-SkMallocPixelRef* SkMallocPixelRef::NewWithData(const SkImageInfo& info,
- size_t rowBytes,
- SkColorTable* ctable,
- SkData* data) {
- return (SkMallocPixelRef*)MakeWithData(info, rowBytes, sk_ref_sp(ctable), sk_ref_sp(data)).release();
-}
-#endif