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
This commit is contained in:
reed@google.com 2011-02-10 18:47:24 +00:00
parent d413445531
commit fb56a9ee2d

View File

@ -667,6 +667,11 @@ bool SampleWindow::onHandleChar(SkUnichar uni) {
this->inval(NULL); this->inval(NULL);
this->updateTitle(); this->updateTitle();
return true; return true;
case 'c':
fUseClip = !fUseClip;
this->inval(NULL);
this->updateTitle();
return true;
case 'd': case 'd':
SkGraphics::SetFontCacheUsed(0); SkGraphics::SetFontCacheUsed(0);
return true; return true;