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

Unified Diff: src/core/SkBitmap.cpp

Issue 178003002: Fix compile errors in legacy copyTo(). (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') | no next file » | 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 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
« no previous file with comments | « include/core/SkBitmap.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698