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

Side by Side Diff: bench/SkBenchmark.h

Issue 23453031: Rewrite SkTRegistry to take any trivially-copyable type. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: reed+scroggo Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | experimental/SkiaExamples/SkExample.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 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 #ifndef SkBenchmark_DEFINED 8 #ifndef SkBenchmark_DEFINED
9 #define SkBenchmark_DEFINED 9 #define SkBenchmark_DEFINED
10 10
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 bool fForceAA; 147 bool fForceAA;
148 bool fForceFilter; 148 bool fForceFilter;
149 SkTriState::State fDither; 149 SkTriState::State fDither;
150 bool fHasStrokeWidth; 150 bool fHasStrokeWidth;
151 SkScalar strokeWidth; 151 SkScalar strokeWidth;
152 uint32_t fOrMask, fClearMask; 152 uint32_t fOrMask, fClearMask;
153 153
154 typedef SkRefCnt INHERITED; 154 typedef SkRefCnt INHERITED;
155 }; 155 };
156 156
157 typedef SkTRegistry<SkBenchmark*, void*> BenchRegistry; 157 typedef SkTRegistry<SkBenchmark*(*)(void*)> BenchRegistry;
158 158
159 #endif 159 #endif
OLDNEW
« no previous file with comments | « no previous file | experimental/SkiaExamples/SkExample.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698