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

Unified Diff: gm/arithmode.cpp

Issue 140593005: add legacy/helper allocN32Pixels, and convert gm to use it (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 11 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/aarectmodes.cpp ('k') | gm/bicubicfilter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/arithmode.cpp
diff --git a/gm/arithmode.cpp b/gm/arithmode.cpp
index 63be6c387166660f22c03bcc98c3baad3ecac90a..d85e43d8e6e622e87670c8eb7c8dc7bbd09d45d4 100644
--- a/gm/arithmode.cpp
+++ b/gm/arithmode.cpp
@@ -17,8 +17,7 @@
static SkBitmap make_bm() {
SkBitmap bm;
- bm.setConfig(SkBitmap::kARGB_8888_Config, WW, HH);
- bm.allocPixels();
+ bm.allocN32Pixels(WW, HH);
bm.eraseColor(SK_ColorTRANSPARENT);
return bm;
}
« no previous file with comments | « gm/aarectmodes.cpp ('k') | gm/bicubicfilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698