Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(339)

Unified Diff: samplecode/SampleFatBits.cpp

Issue 1300513002: increase zoom in fatbits (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samplecode/SampleFatBits.cpp
diff --git a/samplecode/SampleFatBits.cpp b/samplecode/SampleFatBits.cpp
index 9036fbe89a7aec5c5d187cdb1a776219504e64f6..a7565918444c821b9a68a92dca447a9ce367192c 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;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698