summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Reed <reed@google.com>2014-07-07 10:59:40 -0400
committerMike Reed <reed@google.com>2014-07-07 10:59:40 -0400
commitf8134eff0007533f213925d3e8e37d213b3afdee (patch)
tree42d01d441871552c71b141f33c642998ad569ac9
parent67ea671fe421d0e4642caef619ec39ec86bdcaef (diff)
downloadandroid_frameworks_minikin-f8134eff0007533f213925d3e8e37d213b3afdee.tar.gz
android_frameworks_minikin-f8134eff0007533f213925d3e8e37d213b3afdee.tar.bz2
android_frameworks_minikin-f8134eff0007533f213925d3e8e37d213b3afdee.zip
setConfig is deprecated
Change-Id: Iffad3ef724b565d5d8fed17722630fd74cda9234
-rw-r--r--sample/example_skia.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/sample/example_skia.cpp b/sample/example_skia.cpp
index e686621..1a6aa23 100644
--- a/sample/example_skia.cpp
+++ b/sample/example_skia.cpp
@@ -125,11 +125,10 @@ int runMinikinTest() {
SkAutoGraphics ag;
- SkScalar width = 800;
- SkScalar height = 600;
+ int width = 800;
+ int height = 600;
SkBitmap bitmap;
- bitmap.setConfig(SkBitmap::kARGB_8888_Config, width, height);
- bitmap.allocPixels();
+ bitmap.allocN32Pixels(width, height);
SkCanvas canvas(bitmap);
SkPaint paint;
paint.setARGB(255, 0, 0, 128);