Add a tiled pipe mode to SampleApp.

Using the "Pipe" checkbox in SamleApp, you can now
toggle amongst three states: no pipe, a normal pipe
(or others depending on #defines), and a tiled pipe.
You can also use shift + p to toggle.
Review URL: https://codereview.appspot.com/6303055

git-svn-id: http://skia.googlecode.com/svn/trunk@4213 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/samplecode/SampleCode.h b/samplecode/SampleCode.h
index 3d1f266..0a582cb 100644
--- a/samplecode/SampleCode.h
+++ b/samplecode/SampleCode.h
@@ -14,7 +14,7 @@
 #include "SkEvent.h"
 #include "SkKey.h"
 #include "SkView.h"
-class SkOSMenu;
+#include "SkOSMenu.h"
 class GrContext;
 
 class SampleCode {
@@ -107,15 +107,15 @@
 
 class SampleView : public SkView {
 public:
-    SampleView() : fBGColor(SK_ColorWHITE), fRepeatCount(1) {
-        fUsePipe = false;
+    SampleView() : fPipeState(SkOSMenu::kOffState), 
+            fBGColor(SK_ColorWHITE), fRepeatCount(1) {
     }
 
     void setBGColor(SkColor color) { fBGColor = color; }
 
     static bool IsSampleView(SkView*);
     static bool SetRepeatDraw(SkView*, int count);
-    static bool SetUsePipe(SkView*, bool);
+    static bool SetUsePipe(SkView*, SkOSMenu::TriState);
     
     /**
      *  Call this to request menu items from a SampleView.
@@ -136,7 +136,7 @@
     virtual void draw(SkCanvas*);
     virtual void onDraw(SkCanvas*);
 
-    bool fUsePipe;
+    SkOSMenu::TriState fPipeState;
     SkColor fBGColor;
     
 private: