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

Unified Diff: gm/bitmapscroll.cpp

Issue 171723007: add new copyTo version to SkBitmap, which takes SkColorType (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 | « gm/bitmapfilters.cpp ('k') | gm/copyTo4444.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/bitmapscroll.cpp
diff --git a/gm/bitmapscroll.cpp b/gm/bitmapscroll.cpp
index b14b0475dd6242a0ece52737afeb7a943be5a481..d2b8ca0f9a08f6786814201133ee73424b533cba 100644
--- a/gm/bitmapscroll.cpp
+++ b/gm/bitmapscroll.cpp
@@ -129,7 +129,7 @@ protected:
// scrollRect() should always return true, even if it's a no-op
SkBitmap scrolledBitmap;
SkDEBUGCODE(bool copyToReturnValue = )origBitmap.copyTo(
- &scrolledBitmap, origBitmap.config());
+ &scrolledBitmap, origBitmap.colorType());
SkASSERT(copyToReturnValue);
SkDEBUGCODE(bool scrollRectReturnValue = )scrolledBitmap.scrollRect(
subset, scrollX * xMult, scrollY * yMult);
« no previous file with comments | « gm/bitmapfilters.cpp ('k') | gm/copyTo4444.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698