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