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

Side by Side Diff: gm/bleed.cpp

Issue 1842753002: Style bikeshed - remove extraneous whitespace (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « gm/bitmapshader.cpp ('k') | gm/bmpfilterqualityrepeat.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "gm.h" 8 #include "gm.h"
9 #include "SkBlurMask.h" 9 #include "SkBlurMask.h"
10 #include "SkBlurMaskFilter.h" 10 #include "SkBlurMaskFilter.h"
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 bool make_ringed_alpha_image(GrContext* ctx, TestPixels* result, int width, int height) { 149 bool make_ringed_alpha_image(GrContext* ctx, TestPixels* result, int width, int height) {
150 if (make_ringed_alpha_bitmap(ctx, result, width, height)) { 150 if (make_ringed_alpha_bitmap(ctx, result, width, height)) {
151 bmp_to_image(result); 151 bmp_to_image(result);
152 return true; 152 return true;
153 } 153 }
154 return false; 154 return false;
155 } 155 }
156 156
157 /** Similar to make_ringed_bitmap with these modifications: 157 /** Similar to make_ringed_bitmap with these modifications:
158 - The backing store is a texture. 158 - The backing store is a texture.
159 - The texture is larger than the bitmap dimensions (it is surrounded by non-content 159 - The texture is larger than the bitmap dimensions (it is surrounded by non-content
160 padding on the right/bottom of the contents.) 160 padding on the right/bottom of the contents.)
161 - The right/bottom sides of the rings are omitted so that the rect to dr aw is adjacent to 161 - The right/bottom sides of the rings are omitted so that the rect to dr aw is adjacent to
162 the texture padding. 162 the texture padding.
163 */ 163 */
164 template <typename PIXEL_TYPE> 164 template <typename PIXEL_TYPE>
165 bool make_oversized_texture_bitmap(GrContext* ctx, TestPixels* result, int width , int height, 165 bool make_oversized_texture_bitmap(GrContext* ctx, TestPixels* result, int width , int height,
166 GrPixelConfig config, PIXEL_TYPE outerRingCol or, 166 GrPixelConfig config, PIXEL_TYPE outerRingCol or,
167 PIXEL_TYPE innerRingColor, PIXEL_TYPE checkCo lor1, 167 PIXEL_TYPE innerRingColor, PIXEL_TYPE checkCo lor1,
168 PIXEL_TYPE checkColor2, PIXEL_TYPE padColor) { 168 PIXEL_TYPE checkColor2, PIXEL_TYPE padColor) {
169 SkASSERT(0 == width % 2 && 0 == height % 2); 169 SkASSERT(0 == width % 2 && 0 == height % 2);
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 596
597 DEF_GM( return new BleedGM(kUseBitmap_BleedTest); ) 597 DEF_GM( return new BleedGM(kUseBitmap_BleedTest); )
598 DEF_GM( return new BleedGM(kUseTextureBitmap_BleedTest); ) 598 DEF_GM( return new BleedGM(kUseTextureBitmap_BleedTest); )
599 DEF_GM( return new BleedGM(kUseImage_BleedTest); ) 599 DEF_GM( return new BleedGM(kUseImage_BleedTest); )
600 DEF_GM( return new BleedGM(kUseAlphaBitmap_BleedTest); ) 600 DEF_GM( return new BleedGM(kUseAlphaBitmap_BleedTest); )
601 DEF_GM( return new BleedGM(kUseAlphaTextureBitmap_BleedTest); ) 601 DEF_GM( return new BleedGM(kUseAlphaTextureBitmap_BleedTest); )
602 DEF_GM( return new BleedGM(kUseAlphaImage_BleedTest); ) 602 DEF_GM( return new BleedGM(kUseAlphaImage_BleedTest); )
603 DEF_GM( return new BleedGM(kUseAlphaBitmapShader_BleedTest); ) 603 DEF_GM( return new BleedGM(kUseAlphaBitmapShader_BleedTest); )
604 DEF_GM( return new BleedGM(kUseAlphaTextureBitmapShader_BleedTest); ) 604 DEF_GM( return new BleedGM(kUseAlphaTextureBitmapShader_BleedTest); )
605 DEF_GM( return new BleedGM(kUseAlphaImageShader_BleedTest); ) 605 DEF_GM( return new BleedGM(kUseAlphaImageShader_BleedTest); )
OLDNEW
« no previous file with comments | « gm/bitmapshader.cpp ('k') | gm/bmpfilterqualityrepeat.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698