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

Unified Diff: src/core/SkImageGenerator.cpp

Issue 1123473004: remove dead code behind BOOL_ONGETINFO (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 8 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 | « src/codec/SkCodec.cpp ('k') | src/images/SkDecodingImageGenerator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkImageGenerator.cpp
diff --git a/src/core/SkImageGenerator.cpp b/src/core/SkImageGenerator.cpp
index 08c133d925aba4a24dcd2494c68bae9c2266da9e..f18dce2d2faeec86299d4c906445dc78146020f6 100644
--- a/src/core/SkImageGenerator.cpp
+++ b/src/core/SkImageGenerator.cpp
@@ -7,16 +7,6 @@
#include "SkImageGenerator.h"
-#ifdef SK_SUPPORT_LEGACY_BOOL_ONGETINFO
-SkImageInfo SkImageGenerator::getInfo() {
- SkImageInfo info;
- if (!this->onGetInfo(&info)) {
- info = SkImageInfo::MakeUnknown(0, 0);
- }
- return info;
-}
-#endif
-
SkImageGenerator::Result SkImageGenerator::getPixels(const SkImageInfo& info, void* pixels,
size_t rowBytes, const Options* options,
SkPMColor ctable[], int* ctableCount) {
@@ -122,15 +112,6 @@ SkData* SkImageGenerator::onRefEncodedData() {
return NULL;
}
-#ifdef SK_SUPPORT_LEGACY_BOOL_ONGETINFO
-bool SkImageGenerator::onGetInfo(SkImageInfo* info) {
- if (info) {
- *info = fInfo;
- }
- return true;
-}
-#endif
-
#ifdef SK_SUPPORT_LEGACY_OPTIONLESS_GET_PIXELS
SkImageGenerator::Result SkImageGenerator::onGetPixels(const SkImageInfo&, void*, size_t,
SkPMColor*, int*) {
« no previous file with comments | « src/codec/SkCodec.cpp ('k') | src/images/SkDecodingImageGenerator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698