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

Unified Diff: gm/bicubicfilter.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/arithmode.cpp ('k') | gm/bigmatrix.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/bicubicfilter.cpp
diff --git a/gm/bicubicfilter.cpp b/gm/bicubicfilter.cpp
index 7eb0aeebb276e5db417fc6cb0fa7f7ef0c1259db..825175e252752ee8584286fdf1f0983635cdbe75 100644
--- a/gm/bicubicfilter.cpp
+++ b/gm/bicubicfilter.cpp
@@ -25,9 +25,7 @@ protected:
void make_checkerboard(int width, int height) {
SkASSERT(width % 2 == 0);
SkASSERT(height % 2 == 0);
- fCheckerboard.setConfig(SkBitmap::kARGB_8888_Config, width, height);
- fCheckerboard.allocPixels();
- SkAutoLockPixels lock(fCheckerboard);
+ fCheckerboard.allocN32Pixels(width, height);
for (int y = 0; y < height; y += 2) {
SkPMColor* s = fCheckerboard.getAddr32(0, y);
for (int x = 0; x < width; x += 2) {
« no previous file with comments | « gm/arithmode.cpp ('k') | gm/bigmatrix.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698