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

Side by Side Diff: gm/image.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/gradients.cpp ('k') | gm/image_pict.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 2011 Google Inc. 2 * Copyright 2011 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 <functional> 8 #include <functional>
9 #include "gm.h" 9 #include "gm.h"
10 #include "SkAutoPixmapStorage.h" 10 #include "SkAutoPixmapStorage.h"
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 make_codec, make_raster, make_picture, make_codec, make_gpu, 284 make_codec, make_raster, make_picture, make_codec, make_gpu,
285 }; 285 };
286 for (auto& proc : procs) { 286 for (auto& proc : procs) {
287 sk_sp<SkImage> image(proc(info, canvas->getGrContext(), draw_content s)); 287 sk_sp<SkImage> image(proc(info, canvas->getGrContext(), draw_content s));
288 if (image) { 288 if (image) {
289 show_scaled_pixels(canvas, image.get()); 289 show_scaled_pixels(canvas, image.get());
290 } 290 }
291 canvas->translate(0, 120); 291 canvas->translate(0, 120);
292 } 292 }
293 } 293 }
294 294
295 private: 295 private:
296 typedef skiagm::GM INHERITED; 296 typedef skiagm::GM INHERITED;
297 }; 297 };
298 DEF_GM( return new ScalePixelsGM; ) 298 DEF_GM( return new ScalePixelsGM; )
299 299
300 //////////////////////////////////////////////////////////////////////////////// /////////////////// 300 //////////////////////////////////////////////////////////////////////////////// ///////////////////
301 301
302 #include "SkImageGenerator.h" 302 #include "SkImageGenerator.h"
303 303
304 static SkImageInfo make_info(SkImage* img) { 304 static SkImageInfo make_info(SkImage* img) {
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 } 500 }
501 if (context) { 501 if (context) {
502 sk_sp<SkImage> texImage(image->makeTextureImage(context)); 502 sk_sp<SkImage> texImage(image->makeTextureImage(context));
503 if (texImage) { 503 if (texImage) {
504 canvas->drawImage(texImage, 0, 0); 504 canvas->drawImage(texImage, 0, 0);
505 } 505 }
506 } 506 }
507 canvas->translate(image->width() + kPad, 0); 507 canvas->translate(image->width() + kPad, 0);
508 } 508 }
509 } 509 }
OLDNEW
« no previous file with comments | « gm/gradients.cpp ('k') | gm/image_pict.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698