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, 4 insertions, 6 deletions
diff --git a/samplecode/SampleAARects.cpp b/samplecode/SampleAARects.cpp
index c50c39f5af..942242b02e 100644
--- a/samplecode/SampleAARects.cpp
+++ b/samplecode/SampleAARects.cpp
@@ -39,16 +39,14 @@ class AARectView : public SampleView {
};
public:
AARectView() {
- }
-
-protected:
- void onOnceBeforeDraw() override {
fBitmap = createBitmap(N);
+
fWidth = N;
}
+protected:
// overrides from SkEventSink
- bool onQuery(SkEvent* evt) override {
+ virtual bool onQuery(SkEvent* evt) {
if (SampleCode::TitleQ(*evt)) {
SampleCode::TitleR(evt, "AA Rects");
return true;
@@ -56,7 +54,7 @@ protected:
return this->INHERITED::onQuery(evt);
}
- void onDrawContent(SkCanvas* canvas) override {
+ virtual void onDrawContent(SkCanvas* canvas) {
canvas->translate(SkIntToScalar(10), SkIntToScalar(10));
SkPaint bluePaint;