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

Unified Diff: src/core/SkBitmap.cpp

Issue 183763035: remove SK_SUPPORT_DEEPCOPYTO_CONFIG code -- no longer used (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 10 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/SkBitmap.h ('k') | tests/GpuBitmapCopyTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
-}
-
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « include/core/SkBitmap.h ('k') | tests/GpuBitmapCopyTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698