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

Side by Side Diff: tools/pinspect.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 | « tools/lua/lua_pictures.cpp ('k') | tools/sk_tool_utils.h » ('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 2012 Google Inc. 2 * Copyright 2012 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 "SkBitmap.h" 8 #include "SkBitmap.h"
9 #include "SkCanvas.h" 9 #include "SkCanvas.h"
10 #include "SkGraphics.h" 10 #include "SkGraphics.h"
(...skipping 20 matching lines...) Expand all
31 } 31 }
32 printf("version:%d width:%d height:%d\n", header[0], header[1], header[2 ]); 32 printf("version:%d width:%d height:%d\n", header[0], header[1], header[2 ]);
33 } 33 }
34 34
35 stream.rewind(); 35 stream.rewind();
36 auto pic = SkPicture::MakeFromStream(&stream); 36 auto pic = SkPicture::MakeFromStream(&stream);
37 if (nullptr == pic) { 37 if (nullptr == pic) {
38 SkDebugf("Could not create SkPicture: %s\n", path); 38 SkDebugf("Could not create SkPicture: %s\n", path);
39 return nullptr; 39 return nullptr;
40 } 40 }
41 printf("picture cullRect: [%f %f %f %f]\n", 41 printf("picture cullRect: [%f %f %f %f]\n",
42 pic->cullRect().fLeft, pic->cullRect().fTop, 42 pic->cullRect().fLeft, pic->cullRect().fTop,
43 pic->cullRect().fRight, pic->cullRect().fBottom); 43 pic->cullRect().fRight, pic->cullRect().fBottom);
44 return pic; 44 return pic;
45 } 45 }
46 46
47 static void dumpOps(SkPicture* pic) { 47 static void dumpOps(SkPicture* pic) {
48 #ifdef SK_DEVELOPER 48 #ifdef SK_DEVELOPER
49 SkDebugfDumper dumper; 49 SkDebugfDumper dumper;
50 SkDumpCanvas canvas(&dumper); 50 SkDumpCanvas canvas(&dumper);
51 canvas.drawPicture(pic); 51 canvas.drawPicture(pic);
(...skipping 28 matching lines...) Expand all
80 } 80 }
81 } 81 }
82 return 0; 82 return 0;
83 } 83 }
84 84
85 #if !defined SK_BUILD_FOR_IOS 85 #if !defined SK_BUILD_FOR_IOS
86 int main(int argc, char * const argv[]) { 86 int main(int argc, char * const argv[]) {
87 return tool_main(argc, (char**) argv); 87 return tool_main(argc, (char**) argv);
88 } 88 }
89 #endif 89 #endif
OLDNEW
« no previous file with comments | « tools/lua/lua_pictures.cpp ('k') | tools/sk_tool_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698