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

Side by Side Diff: gm/cgms.cpp

Issue 736133006: more c (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 unified diff | Download patch
OLDNEW
(Empty)
1 /*
2 * Copyright 2014 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #include "gm.h"
9 #include "sk_types.h"
10
11 extern "C" void sk_test_c_api(sk_canvas_t*);
12
13 class C_GM : public skiagm::GM {
14 public:
15 C_GM() {}
16
17 protected:
18 SkString onShortName() SK_OVERRIDE {
19 return SkString("c_gms");
20 }
21
22 SkISize onISize() SK_OVERRIDE {
23 return SkISize::Make(640, 480);
24 }
25
26 void onDraw(SkCanvas* canvas) SK_OVERRIDE {
27 sk_test_c_api((sk_canvas_t*)canvas);
28 }
29
30 private:
31 typedef GM INHERITED;
32 };
33
34 DEF_GM( return new C_GM; )
35
OLDNEW
« 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