aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/SampleAARects.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'samplecode/SampleAARects.cpp')
-rw-r--r--samplecode/SampleAARects.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/samplecode/SampleAARects.cpp b/samplecode/SampleAARects.cpp
index 3676240ba8..f83ab31f55 100644
--- a/samplecode/SampleAARects.cpp
+++ b/samplecode/SampleAARects.cpp
@@ -38,16 +38,16 @@ class AARectView : public SampleView {
enum {
N = 64
};
-public:
- AARectView() {
+
+protected:
+ void onOnceBeforeDraw() override {
fBitmap = createBitmap(N);
fWidth = N;
}
-protected:
// overrides from SkEventSink
- virtual bool onQuery(SkEvent* evt) {
+ bool onQuery(SkEvent* evt) override {
if (SampleCode::TitleQ(*evt)) {
SampleCode::TitleR(evt, "AA Rects");
return true;
@@ -55,7 +55,7 @@ protected:
return this->INHERITED::onQuery(evt);
}
- virtual void onDrawContent(SkCanvas* canvas) {
+ void onDrawContent(SkCanvas* canvas) override {
canvas->translate(SkIntToScalar(10), SkIntToScalar(10));
SkPaint bluePaint;