| 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 #include "Benchmark.h" | 7 #include "Benchmark.h" |
| 8 #include "SkMutex.h" | 8 #include "SkMutex.h" |
| 9 #include "SkSharedMutex.h" | 9 #include "SkSharedMutex.h" |
| 10 #include "SkSpinlock.h" | 10 #include "SkSpinlock.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 typedef Benchmark INHERITED; | 58 typedef Benchmark INHERITED; |
| 59 SkSharedMutex fMu; | 59 SkSharedMutex fMu; |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 /////////////////////////////////////////////////////////////////////////////// | 62 /////////////////////////////////////////////////////////////////////////////// |
| 63 | 63 |
| 64 DEF_BENCH( return new MutexBench<SkSharedMutex>(SkString("SkSharedMutex")); ) | 64 DEF_BENCH( return new MutexBench<SkSharedMutex>(SkString("SkSharedMutex")); ) |
| 65 DEF_BENCH( return new MutexBench<SkMutex>(SkString("SkMutex")); ) | 65 DEF_BENCH( return new MutexBench<SkMutex>(SkString("SkMutex")); ) |
| 66 DEF_BENCH( return new MutexBench<SkSpinlock>(SkString("SkSpinlock")); ) | 66 DEF_BENCH( return new MutexBench<SkSpinlock>(SkString("SkSpinlock")); ) |
| 67 DEF_BENCH( return new SharedBench; ) | 67 DEF_BENCH( return new SharedBench; ) |
| 68 | |
| OLD | NEW |