• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 }
12