aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar reed <reed@chromium.org>2015-08-15 07:42:31 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-15 07:42:31 -0700
commitbb886749feb444edfd8fbf053a9ea815e3605f8a (patch)
tree9e706bbbffd860ee22390c3599ebb32154ad596f
parente02716908fe82c7c4ae9b415793277620a22bcd6 (diff)
increase zoom in fatbits
BUG=skia: TBR= Review URL: https://codereview.chromium.org/1300513002
-rw-r--r--samplecode/SampleFatBits.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/samplecode/SampleFatBits.cpp b/samplecode/SampleFatBits.cpp
index 9036fbe89a..a756591844 100644
--- a/samplecode/SampleFatBits.cpp
+++ b/samplecode/SampleFatBits.cpp
@@ -41,7 +41,7 @@ public:
FatBits() {
fAA = false;
fStyle = kHair_Style;
- fGrid = true;
+ fGrid = false;
fShowSkeleton = true;
fUseGPU = false;
fUseClip = false;
@@ -376,15 +376,20 @@ public:
};
class DrawLineView : public SampleView {
+ enum {
+ kZoom = 96
+ };
+
FatBits fFB;
SkPoint fPts[3];
bool fIsRect;
public:
DrawLineView() {
- fFB.setWHZ(24, 16, 48);
- fPts[0].set(48, 48);
- fPts[1].set(48 * 5, 48 * 4);
- fPts[2].set(48 * 2, 48 * 6);
+ fFB.setWHZ(24, 16, kZoom);
+ fPts[0].set(1, 1);
+ fPts[1].set(5, 4);
+ fPts[2].set(2, 6);
+ SkMatrix::MakeScale(kZoom, kZoom).mapPoints(fPts, 3);
fIsRect = false;
}