Index: src/core/SkBitmap.cpp |
diff --git a/src/core/SkBitmap.cpp b/src/core/SkBitmap.cpp |
index 32cb7b25cd57360cd94434a1e0dbc5de0d0a930c..297e613a7ec7219a09c0aaaf8f1c5e91d56a872b 100644 |
--- a/src/core/SkBitmap.cpp |
+++ b/src/core/SkBitmap.cpp |
@@ -984,11 +984,11 @@ bool SkBitmap::extractSubset(SkBitmap* result, const SkIRect& subset) const { |
#ifdef SK_SUPPORT_LEGACY_COPYTO_CONFIG |
bool SkBitmap::copyTo(SkBitmap* dst, Config c, Allocator* allocator) const { |
- return this->copyTo(dst, SkBitmapConfigToSkColorType(c), allocator); |
+ return this->copyTo(dst, SkBitmapConfigToColorType(c), allocator); |
} |
bool SkBitmap::canCopyTo(Config newConfig) const { |
- return this->canCopyTo(SkBitmapConfigToSkColorType(c)); |
+ return this->canCopyTo(SkBitmapConfigToColorType(newConfig)); |
} |
#endif |