Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Unified Diff: gm/smallimage.cpp

Issue 769423002: work in progress (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « experimental/tools/multipage_pdf_profiler.cpp ('k') | gyp/experimental.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/smallimage.cpp
diff --git a/gm/smallimage.cpp b/gm/smallimage.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..6eb48d830d230612b6a3e2ccaefd63acdc3866ae
--- /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");
+ }
+}
« no previous file with comments | « experimental/tools/multipage_pdf_profiler.cpp ('k') | gyp/experimental.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698