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

Unified Diff: gm/cgms.cpp

Issue 736133006: more c (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 1 month 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 | « gm/cgm.c ('k') | gyp/gmslides.gypi » ('j') | include/c/sk_matrix.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/cgms.cpp
diff --git a/gm/cgms.cpp b/gm/cgms.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..4f2c1b1822c90ffd4c42f8a72039e614d30bad51
--- /dev/null
+++ b/gm/cgms.cpp
@@ -0,0 +1,35 @@
+/*
+ * Copyright 2014 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#include "gm.h"
+#include "sk_types.h"
+
+extern "C" void sk_test_c_api(sk_canvas_t*);
+
+class C_GM : public skiagm::GM {
+public:
+ C_GM() {}
+
+protected:
+ SkString onShortName() SK_OVERRIDE {
+ return SkString("c_gms");
+ }
+
+ SkISize onISize() SK_OVERRIDE {
+ return SkISize::Make(640, 480);
+ }
+
+ void onDraw(SkCanvas* canvas) SK_OVERRIDE {
+ sk_test_c_api((sk_canvas_t*)canvas);
+ }
+
+private:
+ typedef GM INHERITED;
+};
+
+DEF_GM( return new C_GM; )
+
« no previous file with comments | « gm/cgm.c ('k') | gyp/gmslides.gypi » ('j') | include/c/sk_matrix.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698