diff options
Diffstat (limited to 'samplecode/SampleCode.h')
-rw-r--r-- | samplecode/SampleCode.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/samplecode/SampleCode.h b/samplecode/SampleCode.h index e86ddd660e..6b3218536a 100644 --- a/samplecode/SampleCode.h +++ b/samplecode/SampleCode.h @@ -109,6 +109,7 @@ class SampleView : public SkView { public: SampleView() : fPipeState(SkOSMenu::kOffState), fBGColor(SK_ColorWHITE), fRepeatCount(1) { + fTileCount.set(1, 1); } void setBGColor(SkColor color) { fBGColor = color; } @@ -116,6 +117,7 @@ public: static bool IsSampleView(SkView*); static bool SetRepeatDraw(SkView*, int count); static bool SetUsePipe(SkView*, SkOSMenu::TriState); + static bool SetTileCount(SkView*, int nx, int ny); /** * Call this to request menu items from a SampleView. @@ -141,6 +143,7 @@ protected: private: int fRepeatCount; + SkISize fTileCount; typedef SkView INHERITED; }; |