| 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 /* | 8 /* |
| 9 * Code for the "gm" (Golden Master) rendering comparison tool. | 9 * Code for the "gm" (Golden Master) rendering comparison tool. |
| 10 * | 10 * |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 Iter() { | 99 Iter() { |
| 100 this->reset(); | 100 this->reset(); |
| 101 } | 101 } |
| 102 | 102 |
| 103 void reset() { | 103 void reset() { |
| 104 fReg = GMRegistry::Head(); | 104 fReg = GMRegistry::Head(); |
| 105 } | 105 } |
| 106 | 106 |
| 107 GM* next() { | 107 GM* next() { |
| 108 if (fReg) { | 108 if (fReg) { |
| 109 GMRegistry::Factory fact = fReg->factory(); | 109 GMRegistry::Data fact = fReg->data(); |
| 110 fReg = fReg->next(); | 110 fReg = fReg->next(); |
| 111 return fact(0); | 111 return fact(0); |
| 112 } | 112 } |
| 113 return NULL; | 113 return NULL; |
| 114 } | 114 } |
| 115 | 115 |
| 116 static int Count() { | 116 static int Count() { |
| 117 const GMRegistry* reg = GMRegistry::Head(); | 117 const GMRegistry* reg = GMRegistry::Head(); |
| 118 int count = 0; | 118 int count = 0; |
| 119 while (reg) { | 119 while (reg) { |
| (...skipping 2170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2290 if (FLAGS_forceBWtext) { | 2290 if (FLAGS_forceBWtext) { |
| 2291 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref(); | 2291 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref(); |
| 2292 } | 2292 } |
| 2293 } | 2293 } |
| 2294 | 2294 |
| 2295 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) | 2295 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) |
| 2296 int main(int argc, char * const argv[]) { | 2296 int main(int argc, char * const argv[]) { |
| 2297 return tool_main(argc, (char**) argv); | 2297 return tool_main(argc, (char**) argv); |
| 2298 } | 2298 } |
| 2299 #endif | 2299 #endif |
| OLD | NEW |