migrate some samples over to SampleView, for FPS measurements



git-svn-id: http://skia.googlecode.com/svn/trunk@1166 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/samplecode/SampleShaderText.cpp b/samplecode/SampleShaderText.cpp
index a3cb680..47ee7ee 100644
--- a/samplecode/SampleShaderText.cpp
+++ b/samplecode/SampleShaderText.cpp
@@ -99,9 +99,11 @@
 
 ///////////////////////////////////////////////////////////////////////////////
 
-class ShaderTextView : public SkView {
+class ShaderTextView : public SampleView {
 public:
-	ShaderTextView() {}
+	ShaderTextView() {
+        this->setBGColor(0xFFDDDDDD);
+    }
 
 protected:
     // overrides from SkEventSink
@@ -113,13 +115,7 @@
         return this->INHERITED::onQuery(evt);
     }
 
-    void drawBG(SkCanvas* canvas) {
-        canvas->drawColor(0xFFDDDDDD);
-    }
-
-    virtual void onDraw(SkCanvas* canvas) {
-        this->drawBG(canvas);
-
+    virtual void onDrawContent(SkCanvas* canvas) {
         const char text[] = "Shaded Text";
         const int textLen = SK_ARRAY_COUNT(text) - 1;
         static int pointSize = 48;
@@ -189,7 +185,7 @@
     }
 
 private:
-    typedef SkView INHERITED;
+    typedef SampleView INHERITED;
 };
 
 ///////////////////////////////////////////////////////////////////////////////