diff options
author | scroggo <scroggo@chromium.org> | 2015-07-30 07:47:45 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-30 07:47:45 -0700 |
commit | ef004e1b49ce6ad488ea4444c0eb896ef37c1242 (patch) | |
tree | cc06764b4fc7d508c2a1a13a0cba8ed334aa010b /tests | |
parent | 6cb3cbe8e67db5fb94ba7d98f60833229b008544 (diff) |
Remove SK_LEGACY_IMAGE_GENERATOR_ENUMS_AND_OPTIONS
Now that Chrome no longer depends on it, remove dead code.
Review URL: https://codereview.chromium.org/1263013002
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CachedDecodingPixelRefTest.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/CachedDecodingPixelRefTest.cpp b/tests/CachedDecodingPixelRefTest.cpp index 78adc34d5a..0e9b18e1cf 100644 --- a/tests/CachedDecodingPixelRefTest.cpp +++ b/tests/CachedDecodingPixelRefTest.cpp @@ -182,29 +182,15 @@ protected: kOpaque_SkAlphaType); } -#ifdef SK_LEGACY_IMAGE_GENERATOR_ENUMS_AND_OPTIONS - Result onGetPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, - const Options&, - SkPMColor ctable[], int* ctableCount) override { -#else bool onGetPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, SkPMColor ctable[], int* ctableCount) override { -#endif REPORTER_ASSERT(fReporter, pixels != NULL); REPORTER_ASSERT(fReporter, rowBytes >= info.minRowBytes()); if (fType != kSucceedGetPixels_TestType) { -#ifdef SK_LEGACY_IMAGE_GENERATOR_ENUMS_AND_OPTIONS - return kUnimplemented; -#else return false; -#endif } if (info.colorType() != kN32_SkColorType) { -#ifdef SK_LEGACY_IMAGE_GENERATOR_ENUMS_AND_OPTIONS - return kInvalidConversion; -#else return false; -#endif } char* bytePtr = static_cast<char*>(pixels); for (int y = 0; y < info.height(); ++y) { @@ -212,11 +198,7 @@ protected: TestImageGenerator::Color(), info.width()); bytePtr += rowBytes; } -#ifdef SK_LEGACY_IMAGE_GENERATOR_ENUMS_AND_OPTIONS - return kSuccess; -#else return true; -#endif } private: |