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

Unified Diff: gm/bitmapmatrix.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/bigmatrix.cpp ('k') | gm/bitmappremul.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/bitmapmatrix.cpp
diff --git a/gm/bitmapmatrix.cpp b/gm/bitmapmatrix.cpp
index 46098919f3592a407ad9caf23b86c6f4f75c0a94..eec421f8cfe804df0a38912d9e42476db6a761f7 100644
--- a/gm/bitmapmatrix.cpp
+++ b/gm/bitmapmatrix.cpp
@@ -107,8 +107,7 @@ private:
void setupBitmap(SkBitmap* bm) {
SkASSERT(bm);
static const int SIZE = 64;
- bm->setConfig(SkBitmap::kARGB_8888_Config, SIZE, SIZE);
- bm->allocPixels();
+ bm->allocN32Pixels(SIZE, SIZE);
SkCanvas canvas(*bm);
SkPaint paint;
« no previous file with comments | « gm/bigmatrix.cpp ('k') | gm/bitmappremul.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698