aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/gm.h
blob: 1ad72407d1bc58f7722e1567c6ab23fc61a8b207 (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
#ifndef skiagm_DEFINED
#define skiagm_DEFINED

#include "SkRefCnt.h"
#include "SkString.h"
#include "SkTRegistry.h"

namespace skiagm {

    class GM {
    public:
        GM();
        virtual ~GM();
		
		void draw(SkCanvas*);

	protected:
		virtual void onDraw(SkCanvas*) {}
    };

    typedef SkTRegistry<GM*, void*> GMRegistry;
}

#endif