aboutsummaryrefslogtreecommitdiff
path: root/samplecode/SampleBigGradient.cpp
diff options
context:
space:
mode:
authorreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-05-11 05:58:58 +0000
committerreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-05-11 05:58:58 +0000
commit0faac1e8579088a39f38d02ff675f14d7deb608d (patch)
tree4e4cdee1aa1af6b2012bc0aa7ab9ccdcd097dc56 /samplecode/SampleBigGradient.cpp
parentc1c5b15e41eaae5edeb032d994a619ea05c3d0a5 (diff)
remove some dead code in pipes
inherit from SampleView for more samples add L key to toggle using SkGPipe git-svn-id: http://skia.googlecode.com/svn/trunk@1296 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'samplecode/SampleBigGradient.cpp')
-rw-r--r--samplecode/SampleBigGradient.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/samplecode/SampleBigGradient.cpp b/samplecode/SampleBigGradient.cpp
index 5d6d247bcd..5ebb5162f3 100644
--- a/samplecode/SampleBigGradient.cpp
+++ b/samplecode/SampleBigGradient.cpp
@@ -10,7 +10,7 @@ static SkShader* make_grad(SkScalar w, SkScalar h) {
SkShader::kClamp_TileMode);
}
-class BigGradientView : public SkView {
+class BigGradientView : public SampleView {
public:
BigGradientView() {}
@@ -24,10 +24,7 @@ protected:
return this->INHERITED::onQuery(evt);
}
- void drawBG(SkCanvas* canvas) {
- }
-
- virtual void onDraw(SkCanvas* canvas) {
+ virtual void onDrawContent(SkCanvas* canvas) {
SkRect r;
r.set(0, 0, this->width(), this->height());
SkPaint p;
@@ -36,7 +33,7 @@ protected:
}
private:
- typedef SkView INHERITED;
+ typedef SampleView INHERITED;
};
///////////////////////////////////////////////////////////////////////////////