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

Unified Diff: experimental/webtry/template.cpp

Issue 228693002: Initial code for webtry, a web application for allowing users to try out Skia. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Don't add webtry to everything.gyp Created 6 years, 8 months 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
Index: experimental/webtry/template.cpp
diff --git a/experimental/webtry/template.cpp b/experimental/webtry/template.cpp
deleted file mode 100644
index 20b9086cde90c35f4132c4155df2d8d4b798f0ca..0000000000000000000000000000000000000000
--- a/experimental/webtry/template.cpp
+++ /dev/null
@@ -1,23 +0,0 @@
-#include "SkCanvas.h"
-#include "SkGraphics.h"
-#include "SkImageEncoder.h"
-#include "SkImageInfo.h"
-#include "SkForceLinking.h"
-
-int main() {
- SkForceLinking(false);
- SkGraphics::Init();
-
- SkImageInfo info = SkImageInfo::MakeN32(300, 300, kPremul_SkAlphaType);
- SkBitmap bitmap;
- bitmap.setConfig(info);
- bitmap.allocPixels();
- SkCanvas c(bitmap);
- c.drawColor(SK_ColorWHITE);
-
- $usercode
-
- if (!SkImageEncoder::EncodeFile("foo.png", bitmap, SkImageEncoder::kPNG_Type, 100)) {
- printf("Failed to encode\n");
- }
-}

Powered by Google App Engine
This is Rietveld 408576698