aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2014-12-02 14:01:46 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-12-02 14:01:46 -0800
commit84bc52ad26e69c01a694a9d724944507acb64d38 (patch)
tree6f9654af2a05e4bc4b49ed38f0b4a83b47ccafd0 /gm
parente638d1c29b2895a4dcf41b5bc8868278192bf819 (diff)
work in progress
Diffstat (limited to 'gm')
-rw-r--r--gm/smallimage.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/gm/smallimage.cpp b/gm/smallimage.cpp
new file mode 100644
index 0000000000..6eb48d830d
--- /dev/null
+++ b/gm/smallimage.cpp
@@ -0,0 +1,11 @@
+#include "Resources.h"
+#include "gm.h"
+
+DEF_SIMPLE_GM(small_image, canvas, 8, 8) {
+ SkBitmap bitmap;
+ if (GetResourceAsBitmap("randPixels.png", &bitmap)) {
+ canvas->drawBitmap(bitmap, 0.0f, 0.0f);
+ } else {
+ SkDebugf("\nCould not decode resource.\n");
+ }
+}