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 "SkBenchmark.h" | 7 #include "SkBenchmark.h" |
8 #include "SkPaint.h" | 8 #include "SkPaint.h" |
9 #include "SkParse.h" | 9 #include "SkParse.h" |
10 | 10 |
11 const char* SkTriState::Name[] = { "default", "true", "false" }; | 11 const char* SkTriState::Name[] = { "default", "true", "false" }; |
12 | 12 |
13 SK_DEFINE_INST_COUNT(SkBenchmark) | |
14 | |
15 template BenchRegistry* BenchRegistry::gHead; | 13 template BenchRegistry* BenchRegistry::gHead; |
16 | 14 |
17 SkString SkBenchmark::gResourcePath; | 15 SkString SkBenchmark::gResourcePath; |
18 | 16 |
19 SkBenchmark::SkBenchmark() { | 17 SkBenchmark::SkBenchmark() { |
20 fForceAlpha = 0xFF; | 18 fForceAlpha = 0xFF; |
21 fForceAA = true; | 19 fForceAA = true; |
22 fForceFilter = false; | 20 fForceFilter = false; |
23 fDither = SkTriState::kDefault; | 21 fDither = SkTriState::kDefault; |
24 fOrMask = fClearMask = 0; | 22 fOrMask = fClearMask = 0; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 paint->setDither(SkTriState::kTrue == fDither); | 54 paint->setDither(SkTriState::kTrue == fDither); |
57 } | 55 } |
58 } | 56 } |
59 | 57 |
60 | 58 |
61 /////////////////////////////////////////////////////////////////////////////// | 59 /////////////////////////////////////////////////////////////////////////////// |
62 | 60 |
63 SkIPoint SkBenchmark::onGetSize() { | 61 SkIPoint SkBenchmark::onGetSize() { |
64 return SkIPoint::Make(640, 480); | 62 return SkIPoint::Make(640, 480); |
65 } | 63 } |
OLD | NEW |