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
diff --git a/samplecode/SampleCode.h b/samplecode/SampleCode.h
index 0c706ee..de40d1e 100644
--- a/samplecode/SampleCode.h
+++ b/samplecode/SampleCode.h
@@ -49,11 +49,14 @@
class SampleView : public SkView {
public:
- SampleView() : fRepeatCount(1), fBGColor(SK_ColorWHITE) {}
+ SampleView() : fRepeatCount(1), fBGColor(SK_ColorWHITE) {
+ fUsePipe = false;
+ }
void setBGColor(SkColor color) { fBGColor = color; }
static bool SetRepeatDraw(SkView*, int count);
+ static bool SetUsePipe(SkView*, bool);
protected:
virtual void onDrawBackground(SkCanvas*);
@@ -68,6 +71,8 @@
int fRepeatCount;
SkColor fBGColor;
+ bool fUsePipe;
+
typedef SkView INHERITED;
};