OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |