diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-08-15 14:41:58 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-08-15 14:41:58 +0000 |
commit | 67b89eeeb07aa0485db233b5f356031fe15b57c4 (patch) | |
tree | ae6775537c940dd02daa7943b00169b515969681 /samplecode/SampleCode.h | |
parent | 5d8d18651a64f62dbb8881794e23f53bf22c9a23 (diff) |
add 't' to toggle tiling modes
Review URL: https://codereview.appspot.com/6446138
git-svn-id: http://skia.googlecode.com/svn/trunk@5109 2bbb7eff-a529-9590-31e7-b0007b416f81
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; }; |