aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/SampleApp.h
diff options
context:
space:
mode:
authorGravatar bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-06-03 21:26:34 +0000
committerGravatar bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-06-03 21:26:34 +0000
commit96aabc850835f6d08a117c0277be93848ddbf785 (patch)
tree4179616df2271a4700ae1e7526fe631f111d5a41 /samplecode/SampleApp.h
parent1ebc67465d3cbe0f4493a55b364e2e15515c1355 (diff)
Fix hinting and add subpixel to SampleApp.
This change allows users of SampleApp to cycle through all of the hinting modes (using the 'h' key) and also toggle subpixel positioning on the paint (using the 's' key). Because 'up' and 'down' have replaced its functionality, 'scale', the exising user of 's', is removed. git-svn-id: http://skia.googlecode.com/svn/trunk@9421 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'samplecode/SampleApp.h')
-rw-r--r--samplecode/SampleApp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/samplecode/SampleApp.h b/samplecode/SampleApp.h
index e2bdc5f535..162d4efaf4 100644
--- a/samplecode/SampleApp.h
+++ b/samplecode/SampleApp.h
@@ -183,7 +183,6 @@ private:
bool fRotate;
bool fPerspAnim;
SkScalar fPerspAnimTime;
- bool fScale;
bool fRequestGrabImage;
bool fMeasureFPS;
SkMSec fMeasureFPS_Time;
@@ -208,7 +207,8 @@ private:
SkOSMenu::TriState fLCDState;
SkOSMenu::TriState fAAState;
SkOSMenu::TriState fFilterState;
- SkOSMenu::TriState fHintingState;
+ SkOSMenu::TriState fSubpixelState;
+ int fHintingState;
SkOSMenu::TriState fTilingState;
unsigned fFlipAxis;