aboutsummaryrefslogtreecommitdiff
path: root/samplecode/SampleApp.cpp
diff options
context:
space:
mode:
authorreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-02-10 18:47:24 +0000
committerreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-02-10 18:47:24 +0000
commitfb56a9ee2d64e11aae6d225cb905e95e4a0ee6e5 (patch)
tree530cd8e21bfd8ddf5be42c31e024dc4574cff674 /samplecode/SampleApp.cpp
parentd41344553163085bfcfaf7d5882c6028934f8e3b (diff)
add 'c' command, which toggles a semi-complex clip (the pink is what has been
clipped out). git-svn-id: http://skia.googlecode.com/svn/trunk@781 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'samplecode/SampleApp.cpp')
-rw-r--r--samplecode/SampleApp.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp
index e77562afef..586541745e 100644
--- a/samplecode/SampleApp.cpp
+++ b/samplecode/SampleApp.cpp
@@ -667,6 +667,11 @@ bool SampleWindow::onHandleChar(SkUnichar uni) {
this->inval(NULL);
this->updateTitle();
return true;
+ case 'c':
+ fUseClip = !fUseClip;
+ this->inval(NULL);
+ this->updateTitle();
+ return true;
case 'd':
SkGraphics::SetFontCacheUsed(0);
return true;