Index: src/core/SkBitmap.cpp |
diff --git a/src/core/SkBitmap.cpp b/src/core/SkBitmap.cpp |
index 297e613a7ec7219a09c0aaaf8f1c5e91d56a872b..199f212c8696c7e7a1e6400bff6ac75f33b37744 100644 |
--- a/src/core/SkBitmap.cpp |
+++ b/src/core/SkBitmap.cpp |
@@ -1148,7 +1148,8 @@ bool SkBitmap::copyTo(SkBitmap* dst, SkColorType dstColorType, |
return true; |
} |
-bool SkBitmap::deepCopyTo(SkBitmap* dst, Config dstConfig) const { |
+bool SkBitmap::deepCopyTo(SkBitmap* dst) const { |
+ const SkBitmap::Config dstConfig = this->config(); |
const SkColorType dstCT = SkBitmapConfigToColorType(dstConfig); |
if (!this->canCopyTo(dstCT)) { |
@@ -1190,10 +1191,6 @@ bool SkBitmap::deepCopyTo(SkBitmap* dst, Config dstConfig) const { |
} |
} |
-bool SkBitmap::deepCopyTo(SkBitmap* dst) const { |
- return this->deepCopyTo(dst, this->config()); |
-} |
- |
/////////////////////////////////////////////////////////////////////////////// |
/////////////////////////////////////////////////////////////////////////////// |