aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkImageGenerator.cpp
diff options
context:
space:
mode:
authorGravatar Matt Sarett <msarett@google.com>2017-05-17 10:23:30 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-05-17 14:46:45 +0000
commit861a90f3e55546e583d4f3b5fb355c317babcec7 (patch)
treed60768770df422ee31a87ee25dd4e7809c8499e6 /src/core/SkImageGenerator.cpp
parent7d2a74c8efcf84d47546a711c509e355f4cbebd3 (diff)
Delete legacy image generator API flag
Bug: skia:6620 Change-Id: I7ecdb5b162d8d468d91d4c8dbe276fabe349dc15 Reviewed-on: https://skia-review.googlesource.com/17215 Reviewed-by: Matt Sarett <msarett@google.com> Commit-Queue: Matt Sarett <msarett@google.com>
Diffstat (limited to 'src/core/SkImageGenerator.cpp')
-rw-r--r--src/core/SkImageGenerator.cpp33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/core/SkImageGenerator.cpp b/src/core/SkImageGenerator.cpp
index d0d8f97c74..9e5f78e9a0 100644
--- a/src/core/SkImageGenerator.cpp
+++ b/src/core/SkImageGenerator.cpp
@@ -14,39 +14,6 @@ SkImageGenerator::SkImageGenerator(const SkImageInfo& info, uint32_t uniqueID)
, fUniqueID(kNeedNewImageUniqueID == uniqueID ? SkNextID::ImageID() : uniqueID)
{}
-#ifdef SK_SUPPORT_LEGACY_IMGEN_API
-bool SkImageGenerator::getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes,
- SkPMColor ctable[], int* ctableCount) {
- if (kUnknown_SkColorType == info.colorType()) {
- return false;
- }
- if (nullptr == pixels) {
- return false;
- }
- if (rowBytes < info.minRowBytes()) {
- return false;
- }
-
- if (kIndex_8_SkColorType == info.colorType()) {
- if (nullptr == ctable || nullptr == ctableCount) {
- return false;
- }
- } else {
- if (ctableCount) {
- *ctableCount = 0;
- }
- ctableCount = nullptr;
- ctable = nullptr;
- }
-
- const bool success = this->onGetPixels(info, pixels, rowBytes, ctable, ctableCount);
- if (success && ctableCount) {
- SkASSERT(*ctableCount >= 0 && *ctableCount <= 256);
- }
- return success;
-}
-#endif
-
bool SkImageGenerator::getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes,
const Options* opts) {
if (kUnknown_SkColorType == info.colorType() || kIndex_8_SkColorType == info.colorType()) {