mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
setConfig is deprecated
Change-Id: Iffad3ef724b565d5d8fed17722630fd74cda9234
This commit is contained in:
parent
67ea671fe4
commit
f8134eff00
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user