skia2/samplecode/GMSampleView.h
Brian Salomon d3b65972aa Mark overridden destructors with 'override' and remove 'virtual'
This silences a new warning in clang 5.0

Change-Id: Ieb5b75a6ffed60107c3fd16075d2ecfd515b55e8
Reviewed-on: https://skia-review.googlesource.com/10006
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
2017-03-22 16:06:18 +00:00

38 lines
758 B
C++

/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef GMSampleView_DEFINED
#define GMSampleView_DEFINED
#include "SampleCode.h"
#include "gm.h"
class GMSampleView : public SampleView {
private:
bool fShowSize;
typedef skiagm::GM GM;
public:
GMSampleView(GM*);
~GMSampleView() override;
static SkEvent* NewShowSizeEvt(bool doShowSize);
protected:
bool onQuery(SkEvent*) override;
bool onEvent(const SkEvent&) override;
void onDrawContent(SkCanvas*) override;
void onDrawBackground(SkCanvas*) override;
bool onAnimate(const SkAnimTimer&) override;
private:
GM* fGM;
typedef SampleView INHERITED;
};
#endif