blob: e3e84b03e111d3addafcf9d19d0ca513928e078f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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() override {
return SkString("c_gms");
}
SkISize onISize() override {
return SkISize::Make(640, 480);
}
void onDraw(SkCanvas* canvas) override {
sk_test_c_api((sk_canvas_t*)canvas);
}
private:
typedef GM INHERITED;
};
DEF_GM( return new C_GM; )
|