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

Side by Side Diff: bench/Benchmark.h

Issue 1217573002: remove SkInstCnt (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 5 years, 6 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 | « no previous file | bench/GrResourceCacheBench.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 2011 Google Inc. 2 * Copyright 2011 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 Benchmark_DEFINED 8 #ifndef Benchmark_DEFINED
9 #define Benchmark_DEFINED 9 #define Benchmark_DEFINED
10 10
(...skipping 25 matching lines...) Expand all
36 enum State { 36 enum State {
37 kDefault, 37 kDefault,
38 kTrue, 38 kTrue,
39 kFalse 39 kFalse
40 }; 40 };
41 static const char* Name[]; 41 static const char* Name[];
42 }; 42 };
43 43
44 class Benchmark : public SkRefCnt { 44 class Benchmark : public SkRefCnt {
45 public: 45 public:
46 SK_DECLARE_INST_COUNT(Benchmark)
47
48 Benchmark(); 46 Benchmark();
49 47
50 const char* getName(); 48 const char* getName();
51 const char* getUniqueName(); 49 const char* getUniqueName();
52 SkIPoint getSize(); 50 SkIPoint getSize();
53 51
54 enum Backend { 52 enum Backend {
55 kNonRendering_Backend, 53 kNonRendering_Backend,
56 kRaster_Backend, 54 kRaster_Backend,
57 kGPU_Backend, 55 kGPU_Backend,
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 int fForceAlpha; 120 int fForceAlpha;
123 SkTriState::State fDither; 121 SkTriState::State fDither;
124 uint32_t fOrMask, fClearMask; 122 uint32_t fOrMask, fClearMask;
125 123
126 typedef SkRefCnt INHERITED; 124 typedef SkRefCnt INHERITED;
127 }; 125 };
128 126
129 typedef SkTRegistry<Benchmark*(*)(void*)> BenchRegistry; 127 typedef SkTRegistry<Benchmark*(*)(void*)> BenchRegistry;
130 128
131 #endif 129 #endif
OLDNEW
« no previous file with comments | « no previous file | bench/GrResourceCacheBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698