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

Unified Diff: samplecode/SamplePath.cpp

Issue 169063002: use SkColorType instead of SkBitmap::Config in samplecode (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 | « samplecode/SampleOvalTest.cpp ('k') | samplecode/SampleRegion.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samplecode/SamplePath.cpp
diff --git a/samplecode/SamplePath.cpp b/samplecode/SamplePath.cpp
index a09be281b49f0988d0edd3e74598179d84f7bd84..e35eeb6717575ffe2e91c1ca349cc2e1b5c449f5 100644
--- a/samplecode/SamplePath.cpp
+++ b/samplecode/SamplePath.cpp
@@ -73,8 +73,7 @@ static void test_cubic2() {
}
SkBitmap bitmap;
- bitmap.setConfig(SkBitmap::kARGB_8888_Config, 300, 200);
- bitmap.allocPixels();
+ bitmap.allocN32Pixels(300, 200);
SkCanvas canvas(bitmap);
SkPaint paint;
« no previous file with comments | « samplecode/SampleOvalTest.cpp ('k') | samplecode/SampleRegion.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698