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

Side by Side Diff: tools/skpdiff/SkDiffContext.h

Issue 1457123002: Make block size a template parameter of SkTLList (Closed) Base URL: https://skia.googlesource.com/skia.git@forward
Patch Set: another missing typename Created 5 years, 1 month 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/LListTest.cpp ('k') | tools/skpdiff/SkDiffContext.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 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
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
OLDNEW
« no previous file with comments | « tests/LListTest.cpp ('k') | tools/skpdiff/SkDiffContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698