aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/shadertext3.cpp
diff options
context:
space:
mode:
authorGravatar skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-10-13 02:01:56 +0000
committerGravatar skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-10-13 02:01:56 +0000
commitf57c01bdcfdf1c923b9a473974bfe6f8c66eca3e (patch)
treeee96983e9cd53926959fca12a725406acb319944 /gm/shadertext3.cpp
parente5877e6d9ce2e6946530215f43a3704457efe008 (diff)
Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@5943 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm/shadertext3.cpp')
-rw-r--r--gm/shadertext3.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/gm/shadertext3.cpp b/gm/shadertext3.cpp
index 22d93cbc13..4e9558801a 100644
--- a/gm/shadertext3.cpp
+++ b/gm/shadertext3.cpp
@@ -23,7 +23,7 @@ static void makebm(SkBitmap* bm, SkBitmap::Config config, int w, int h) {
static const SkScalar kPos[] = { 0, SK_Scalar1/2, SK_Scalar1 };
static const SkColor kColors0[] = {0x80F00080, 0xF0F08000, 0x800080F0 };
static const SkColor kColors1[] = {0xF08000F0, 0x8080F000, 0xF000F080 };
-
+
SkPaint paint;
@@ -71,7 +71,7 @@ protected:
if (bmp.isNull()) {
makebm(&bmp, SkBitmap::kARGB_8888_Config, kPointSize / 4, kPointSize / 4);
}
-
+
SkPaint bmpPaint;
bmpPaint.setAntiAlias(true);
bmpPaint.setFilterBitmap(true);
@@ -83,9 +83,9 @@ protected:
outlinePaint.setTextSize(SkIntToScalar(kPointSize));
outlinePaint.setStyle(SkPaint::kStroke_Style);
outlinePaint.setStrokeWidth(0.f);
-
+
canvas->translate(15.f, 15.f);
-
+
// draw glyphs scaled up
canvas->scale(2.f, 2.f);
@@ -93,13 +93,13 @@ protected:
SkShader::kRepeat_TileMode,
SkShader::kMirror_TileMode,
};
-
+
// position the baseline of the first run
canvas->translate(0.f, 0.75f * kPointSize);
-
+
canvas->save();
int i = 0;
- for (size_t tm0 = 0; tm0 < SK_ARRAY_COUNT(kTileModes); ++tm0) {
+ for (size_t tm0 = 0; tm0 < SK_ARRAY_COUNT(kTileModes); ++tm0) {
for (size_t tm1 = 0; tm1 < SK_ARRAY_COUNT(kTileModes); ++tm1) {
SkAutoTUnref<SkShader> shader(SkShader::CreateBitmapShader(bmp,
kTileModes[tm0],