blob: 6eb48d830d230612b6a3e2ccaefd63acdc3866ae [file] [log] [blame]
halcanary84bc52a2014-12-02 14:01:46 -08001#include "Resources.h"
2#include "gm.h"
3
4DEF_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}