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

Unified Diff: gm/bitmappremul.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/bitmapmatrix.cpp ('k') | gm/bitmaprect.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/bitmappremul.cpp
diff --git a/gm/bitmappremul.cpp b/gm/bitmappremul.cpp
index 8b4c2d6edaf83d8e48632a42d87577d05df6f141..57d22d700a7c83b2415cca2c858ac83732b82ede 100644
--- a/gm/bitmappremul.cpp
+++ b/gm/bitmappremul.cpp
@@ -23,8 +23,7 @@ static const int PIXEL_SIZE_8888 = SLIDE_SIZE / 256;
static const int PIXEL_SIZE_4444 = SLIDE_SIZE / 16;
static void init_bitmap(SkBitmap::Config config, SkBitmap* bitmap) {
- bitmap->setConfig(config, SLIDE_SIZE, SLIDE_SIZE);
- bitmap->allocPixels();
+ bitmap->allocConfigPixels(config, SLIDE_SIZE, SLIDE_SIZE);
bitmap->eraseColor(SK_ColorWHITE);
}
« no previous file with comments | « gm/bitmapmatrix.cpp ('k') | gm/bitmaprect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698