aboutsummaryrefslogtreecommitdiff
path: root/samplecode/SampleFilterQuality.cpp
diff options
context:
space:
mode:
authorBrian Osman <brianosman@google.com>2017-11-22 16:36:07 -0500
committerSkia Commit-Bot <skia-commit-bot@chromium.org>2017-11-29 18:12:35 +0000
commitede860e91c2a0021266907885ea2c9b4be09e121 (patch)
tree65e11fcdab6d13d133fc881f38d3efda85402d92 /samplecode/SampleFilterQuality.cpp
parent3f67914c01f32fe61fd0af5022ebfd4e19d68f0e (diff)
Delete even more unused views code
Bug: skia: Change-Id: I41480aa89dfcd8cb7e016e477cbabe354f35ce8a Reviewed-on: https://skia-review.googlesource.com/75480 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'samplecode/SampleFilterQuality.cpp')
-rw-r--r--samplecode/SampleFilterQuality.cpp15
1 files changed, 5 insertions, 10 deletions
diff --git a/samplecode/SampleFilterQuality.cpp b/samplecode/SampleFilterQuality.cpp
index abe1a9097d..a68fa173fc 100644
--- a/samplecode/SampleFilterQuality.cpp
+++ b/samplecode/SampleFilterQuality.cpp
@@ -175,11 +175,11 @@ protected:
SkUnichar uni;
if (SampleCode::CharQ(*evt, &uni)) {
switch (uni) {
- case '1': fAngle.inc(-ANGLE_DELTA); this->inval(nullptr); return true;
- case '2': fAngle.inc( ANGLE_DELTA); this->inval(nullptr); return true;
- case '3': fScale.inc(-SCALE_DELTA); this->inval(nullptr); return true;
- case '4': fScale.inc( SCALE_DELTA); this->inval(nullptr); return true;
- case '5': fShowFatBits = !fShowFatBits; this->inval(nullptr); return true;
+ case '1': fAngle.inc(-ANGLE_DELTA); return true;
+ case '2': fAngle.inc( ANGLE_DELTA); return true;
+ case '3': fScale.inc(-SCALE_DELTA); return true;
+ case '4': fScale.inc( SCALE_DELTA); return true;
+ case '5': fShowFatBits = !fShowFatBits; return true;
default: break;
}
}
@@ -296,11 +296,6 @@ protected:
return true;
}
- virtual bool handleKey(SkKey key) {
- this->inval(nullptr);
- return true;
- }
-
private:
typedef SampleView INHERITED;
};