blob: 4f2c1b1822c90ffd4c42f8a72039e614d30bad51 [file] [log] [blame]
reedafa278e2014-11-24 19:11:48 -08001/*
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
11extern "C" void sk_test_c_api(sk_canvas_t*);
12
13class C_GM : public skiagm::GM {
14public:
15 C_GM() {}
16
17protected:
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
30private:
31 typedef GM INHERITED;
32};
33
34DEF_GM( return new C_GM; )
35