diff options
author | Mike Reed <reed@google.com> | 2017-07-19 15:45:45 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-07-19 22:20:57 +0000 |
commit | b7648a27583a2ef775384751fee25ac9cf3db5d5 (patch) | |
tree | 60b385f2059f2c02312b6f4e4a4ceb33df3a4484 /src/core/SkBitmap.cpp | |
parent | 1635146864586cb7caaccdbfeb8ba4906bf80c67 (diff) |
removed dead colortable code
Bug: skia:6828
Change-Id: I2d3b3b7c846d3ac08bbcb9357cb644873fe5a286
Reviewed-on: https://skia-review.googlesource.com/24623
Commit-Queue: Mike Reed <reed@google.com>
Reviewed-by: Florin Malita <fmalita@chromium.org>
Reviewed-by: Leon Scroggins <scroggo@google.com>
Diffstat (limited to 'src/core/SkBitmap.cpp')
-rw-r--r-- | src/core/SkBitmap.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/core/SkBitmap.cpp b/src/core/SkBitmap.cpp index 4877d64e46..e96e968fbf 100644 --- a/src/core/SkBitmap.cpp +++ b/src/core/SkBitmap.cpp @@ -233,11 +233,7 @@ bool SkBitmap::tryAllocPixels(Allocator* allocator) { if (nullptr == allocator) { allocator = &stdalloc; } -#ifdef SK_SUPPORT_LEGACY_COLORTABLE - return allocator->allocPixelRef(this, nullptr); -#else return allocator->allocPixelRef(this); -#endif } /////////////////////////////////////////////////////////////////////////////// @@ -358,11 +354,7 @@ void SkBitmap::notifyPixelsChanged() const { /** We explicitly use the same allocator for our pixels that SkMask does, so that we can freely assign memory allocated by one class to the other. */ -bool SkBitmap::HeapAllocator::allocPixelRef(SkBitmap* dst -#ifdef SK_SUPPORT_LEGACY_COLORTABLE - , SkColorTable* -#endif - ) { +bool SkBitmap::HeapAllocator::allocPixelRef(SkBitmap* dst) { const SkImageInfo info = dst->info(); if (kUnknown_SkColorType == info.colorType()) { // SkDebugf("unsupported config for info %d\n", dst->config()); |