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

Side by Side Diff: gm/showmiplevels.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/shapes.cpp ('k') | gm/smallpaths.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 2016 Google Inc. 2 * Copyright 2016 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 9
10 #include "Resources.h" 10 #include "Resources.h"
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 } 197 }
198 } 198 }
199 199
200 void onDraw(SkCanvas* canvas) override { 200 void onDraw(SkCanvas* canvas) override {
201 canvas->translate(4, 4); 201 canvas->translate(4, 4);
202 for (const auto& bm : fBM) { 202 for (const auto& bm : fBM) {
203 this->drawSet(canvas, bm); 203 this->drawSet(canvas, bm);
204 canvas->translate(0, bm.height() * 0.85f); 204 canvas->translate(0, bm.height() * 0.85f);
205 } 205 }
206 } 206 }
207 207
208 private: 208 private:
209 typedef skiagm::GM INHERITED; 209 typedef skiagm::GM INHERITED;
210 }; 210 };
211 DEF_GM( return new ShowMipLevels(255); ) 211 DEF_GM( return new ShowMipLevels(255); )
212 DEF_GM( return new ShowMipLevels(256); ) 212 DEF_GM( return new ShowMipLevels(256); )
213 213
214 //////////////////////////////////////////////////////////////////////////////// /////////////////// 214 //////////////////////////////////////////////////////////////////////////////// ///////////////////
215 215
216 /** 216 /**
217 * Show mip levels that were built, for all supported colortypes 217 * Show mip levels that were built, for all supported colortypes
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 void onDraw(SkCanvas* canvas) override { 293 void onDraw(SkCanvas* canvas) override {
294 canvas->translate(4, 4); 294 canvas->translate(4, 4);
295 for (const auto& bm : fBM) { 295 for (const auto& bm : fBM) {
296 this->drawSet(canvas, bm); 296 this->drawSet(canvas, bm);
297 // round so we always produce an integral translate, so the GOLD too l won't show 297 // round so we always produce an integral translate, so the GOLD too l won't show
298 // unimportant diffs if this is drawn on a GPU with different roundi ng rules 298 // unimportant diffs if this is drawn on a GPU with different roundi ng rules
299 // since we draw the bitmaps using nearest-neighbor 299 // since we draw the bitmaps using nearest-neighbor
300 canvas->translate(0, SkScalarRoundToScalar(bm.height() * 0.85f)); 300 canvas->translate(0, SkScalarRoundToScalar(bm.height() * 0.85f));
301 } 301 }
302 } 302 }
303 303
304 private: 304 private:
305 typedef skiagm::GM INHERITED; 305 typedef skiagm::GM INHERITED;
306 }; 306 };
307 DEF_GM( return new ShowMipLevels2(255, 255); ) 307 DEF_GM( return new ShowMipLevels2(255, 255); )
308 DEF_GM( return new ShowMipLevels2(256, 255); ) 308 DEF_GM( return new ShowMipLevels2(256, 255); )
309 DEF_GM( return new ShowMipLevels2(255, 256); ) 309 DEF_GM( return new ShowMipLevels2(255, 256); )
310 DEF_GM( return new ShowMipLevels2(256, 256); ) 310 DEF_GM( return new ShowMipLevels2(256, 256); )
OLDNEW
« no previous file with comments | « gm/shapes.cpp ('k') | gm/smallpaths.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698