halcanary | 84bc52a | 2014-12-02 14:01:46 -0800 | [diff] [blame] | 1 | #include "Resources.h" |
2 | #include "gm.h" | ||||
3 | |||||
4 | DEF_SIMPLE_GM(small_image, canvas, 8, 8) { | ||||
5 | SkBitmap bitmap; | ||||
6 | if (GetResourceAsBitmap("randPixels.png", &bitmap)) { | ||||
7 | canvas->drawBitmap(bitmap, 0.0f, 0.0f); | ||||
8 | } else { | ||||
9 | SkDebugf("\nCould not decode resource.\n"); | ||||
10 | } | ||||
11 | } |