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

Unified Diff: src/core/SkImageGenerator.cpp

Issue 1201233002: remove SK_SUPPORT_LEGACY_OPTIONLESS_GET_PIXELS (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 6 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 | « include/core/SkImageGenerator.h ('k') | no next file » | 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 f18dce2d2faeec86299d4c906445dc78146020f6..36caae99c382b6b7480be2066693c963e18d93a3 100644
--- a/src/core/SkImageGenerator.cpp
+++ b/src/core/SkImageGenerator.cpp
@@ -112,19 +112,8 @@ SkData* SkImageGenerator::onRefEncodedData() {
return NULL;
}
-#ifdef SK_SUPPORT_LEGACY_OPTIONLESS_GET_PIXELS
-SkImageGenerator::Result SkImageGenerator::onGetPixels(const SkImageInfo&, void*, size_t,
- SkPMColor*, int*) {
- return kUnimplemented;
-}
-#endif
-
SkImageGenerator::Result SkImageGenerator::onGetPixels(const SkImageInfo& info, void* dst,
size_t rb, const Options& options,
SkPMColor* colors, int* colorCount) {
-#ifdef SK_SUPPORT_LEGACY_OPTIONLESS_GET_PIXELS
- return this->onGetPixels(info, dst, rb, colors, colorCount);
-#else
return kUnimplemented;
-#endif
}
« no previous file with comments | « include/core/SkImageGenerator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698