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

Unified Diff: gm/bitmapcopy.cpp

Issue 167683006: Offer single-param version of deepCopyTo -- much easier to migrate to colortypes (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 | « no previous file | gm/simpleaaclip.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/bitmapcopy.cpp
diff --git a/gm/bitmapcopy.cpp b/gm/bitmapcopy.cpp
index f210b4aa5e0870e2c55682924c5e93831797be95..5bd2bf88da5996c44ef33eed1d34200f415e050d 100644
--- a/gm/bitmapcopy.cpp
+++ b/gm/bitmapcopy.cpp
@@ -72,9 +72,7 @@ protected:
draw_checks(&canvasTmp, 40, 40);
for (unsigned i = 0; i < NUM_CONFIGS; ++i) {
- if (!src.deepCopyTo(&fDst[i], gConfigs[i])) {
- src.copyTo(&fDst[i], gConfigs[i]);
- }
+ src.copyTo(&fDst[i], gConfigs[i]);
}
canvas->clear(0xFFDDDDDD);
« no previous file with comments | « no previous file | gm/simpleaaclip.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698