| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 #ifndef SkDiffContext_DEFINED | 8 #ifndef SkDiffContext_DEFINED |
| 9 #define SkDiffContext_DEFINED | 9 #define SkDiffContext_DEFINED |
| 10 | 10 |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 SkTArray<DiffData> fDiffs; | 181 SkTArray<DiffData> fDiffs; |
| 182 }; | 182 }; |
| 183 | 183 |
| 184 // Used to protect access to fRecords and ensure only one thread is | 184 // Used to protect access to fRecords and ensure only one thread is |
| 185 // adding new entries at a time. | 185 // adding new entries at a time. |
| 186 SkMutex fRecordMutex; | 186 SkMutex fRecordMutex; |
| 187 | 187 |
| 188 // We use linked list for the records so that their pointers remain stable.
A resizable array | 188 // We use linked list for the records so that their pointers remain stable.
A resizable array |
| 189 // might change its pointers, which would make it harder for async diffs to
record their | 189 // might change its pointers, which would make it harder for async diffs to
record their |
| 190 // results. | 190 // results. |
| 191 SkTLList<DiffRecord> fRecords; | 191 typedef SkTLList<DiffRecord, 1> RecordList; |
| 192 RecordList fRecords; |
| 192 | 193 |
| 193 SkImageDiffer** fDiffers; | 194 SkImageDiffer** fDiffers; |
| 194 int fDifferCount; | 195 int fDifferCount; |
| 195 int fThreadCount; | 196 int fThreadCount; |
| 196 | 197 |
| 197 SkString fAlphaMaskDir; | 198 SkString fAlphaMaskDir; |
| 198 SkString fRgbDiffDir; | 199 SkString fRgbDiffDir; |
| 199 SkString fWhiteDiffDir; | 200 SkString fWhiteDiffDir; |
| 200 bool longNames; | 201 bool longNames; |
| 201 }; | 202 }; |
| 202 | 203 |
| 203 #endif | 204 #endif |
| OLD | NEW |