Skip to content

Commit

Permalink
setConfig is deprecated
Browse files Browse the repository at this point in the history
Change-Id: Iffad3ef724b565d5d8fed17722630fd74cda9234
  • Loading branch information
reed-at-google committed Jul 7, 2014
1 parent 67ea671 commit f8134ef
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions sample/example_skia.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f8134ef

Please sign in to comment.