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

Side by Side Diff: tools/DumpRecord.cpp

Issue 1300163002: unsigned -> int for counts and indices in picture-related code (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: (C) Created 5 years, 4 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 | « tests/RecorderTest.cpp ('k') | no next file » | 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 2014 Google Inc. 2 * Copyright 2014 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 <stdio.h> 8 #include <stdio.h>
9 9
10 #include "SkRecord.h" 10 #include "SkRecord.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 SkRecords::Draw fDraw; 98 SkRecords::Draw fDraw;
99 const bool fTimeWithCommand; 99 const bool fTimeWithCommand;
100 }; 100 };
101 101
102 } // namespace 102 } // namespace
103 103
104 void DumpRecord(const SkRecord& record, 104 void DumpRecord(const SkRecord& record,
105 SkCanvas* canvas, 105 SkCanvas* canvas,
106 bool timeWithCommand) { 106 bool timeWithCommand) {
107 Dumper dumper(canvas, record.count(), timeWithCommand); 107 Dumper dumper(canvas, record.count(), timeWithCommand);
108 for (unsigned i = 0; i < record.count(); i++) { 108 for (int i = 0; i < record.count(); i++) {
109 record.visit<void>(i, dumper); 109 record.visit<void>(i, dumper);
110 } 110 }
111 } 111 }
OLDNEW
« no previous file with comments | « tests/RecorderTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698