2 * Copyright 2011 Google Inc.
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
8 #ifndef GMSampleView_DEFINED
9 #define GMSampleView_DEFINED
11 #include "SampleCode.h"
14 class GMSampleView : public SampleView {
17 typedef skiagm::GM GM;
21 virtual ~GMSampleView();
23 static SkEvent* NewShowSizeEvt(bool doShowSize);
26 bool onQuery(SkEvent*) override;
27 bool onEvent(const SkEvent&) override;
28 void onDrawContent(SkCanvas*) override;
29 void onDrawBackground(SkCanvas*) override;
30 bool onAnimate(const SkAnimTimer&) override;
34 typedef SampleView INHERITED;