diff options
author | skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-07-26 07:00:58 +0000 |
---|---|---|
committer | skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-07-26 07:00:58 +0000 |
commit | 956b310f13c7412c035406c658ff16ca85eac656 (patch) | |
tree | 5c9e6381cab42b6fb3982aa7e96babac18e7a5d7 /gm/bleed.cpp | |
parent | a260e2e4e7a7a5bbf45ec4dc5d3211be478ac4e2 (diff) |
Sanitizing source files in Housekeeper-Nightly
git-svn-id: http://skia.googlecode.com/svn/trunk@10385 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm/bleed.cpp')
-rw-r--r-- | gm/bleed.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/gm/bleed.cpp b/gm/bleed.cpp index 24c1d46967..c5e86624b0 100644 --- a/gm/bleed.cpp +++ b/gm/bleed.cpp @@ -20,7 +20,7 @@ void GrContext::setMaxTextureSizeOverride(int maxTextureSizeOverride) { } #endif -// Create a black&white checked texture with a 1-pixel red ring +// Create a black&white checked texture with a 1-pixel red ring // around the outside edge static void make_red_ringed_bitmap(SkBitmap* result, int width, int height) { SkASSERT(0 == width % 2 && 0 == width % 2); @@ -29,7 +29,7 @@ static void make_red_ringed_bitmap(SkBitmap* result, int width, int height) { result->allocPixels(); SkAutoLockPixels lock(*result); - SkPMColor* scanline = result->getAddr32(0, 0); + SkPMColor* scanline = result->getAddr32(0, 0); for (int x = 0; x < width; ++x) { scanline[x] = SK_ColorRED; } @@ -96,9 +96,9 @@ protected: // shrink the max texture size so all our textures can be reasonably sized oldMaxTextureSize = ctx->getMaxTextureSize(); ctx->setMaxTextureSizeOverride(kMaxTextureSize); - } + } #endif - + canvas->clear(SK_ColorGRAY); SkPaint paint; @@ -107,8 +107,8 @@ protected: paint.setFilterBitmap(true); // carve out the center of the small bitmap - SkRect src = SkRect::MakeXYWH(1, 1, - kSmallTextureSize-2, + SkRect src = SkRect::MakeXYWH(1, 1, + kSmallTextureSize-2, kSmallTextureSize-2); SkRect dst = SkRect::MakeXYWH(10, 10, 100, 100); @@ -122,8 +122,8 @@ protected: // Next test out the GPU's tiling of large textures // first draw almost the whole thing - src = SkRect::MakeXYWH(1, 1, - SkIntToScalar(fBitmapBig.width()-2), + src = SkRect::MakeXYWH(1, 1, + SkIntToScalar(fBitmapBig.width()-2), SkIntToScalar(fBitmapBig.height()-2)); dst = SkRect::MakeXYWH(10, 120, 100, 100); @@ -135,8 +135,8 @@ protected: canvas->drawBitmapRectToRect(fBitmapBig, &src, dst, &paint); // next draw ~1/4 of the bitmap - src = SkRect::MakeXYWH(1, 1, - SkIntToScalar(fBitmapBig.width()/2-1), + src = SkRect::MakeXYWH(1, 1, + SkIntToScalar(fBitmapBig.width()/2-1), SkIntToScalar(fBitmapBig.height()/2-1)); dst = SkRect::MakeXYWH(10, 230, 100, 100); @@ -150,7 +150,7 @@ protected: #if SK_SUPPORT_GPU if (NULL != ctx) { ctx->setMaxTextureSizeOverride(oldMaxTextureSize); - } + } #endif } |