| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 #include "gm.h" | 8 #include "gm.h" |
| 9 | 9 |
| 10 namespace skiagm { | 10 namespace skiagm { |
| 11 | 11 |
| 12 static const char* gConfigNames[] = { | 12 static const char* gConfigNames[] = { |
| 13 "unknown config", | 13 "unknown config", |
| 14 "A1", | |
| 15 "A8", | 14 "A8", |
| 16 "Index8", | 15 "Index8", |
| 17 "565", | 16 "565", |
| 18 "4444", | 17 "4444", |
| 19 "8888" | 18 "8888" |
| 20 }; | 19 }; |
| 21 | 20 |
| 22 SkBitmap::Config gConfigs[] = { | 21 SkBitmap::Config gConfigs[] = { |
| 23 SkBitmap::kRGB_565_Config, | 22 SkBitmap::kRGB_565_Config, |
| 24 SkBitmap::kARGB_4444_Config, // TODO(edisonn): Should we remove it from GM? | 23 SkBitmap::kARGB_4444_Config, // TODO(edisonn): Should we remove it from GM? |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 typedef GM INHERITED; | 121 typedef GM INHERITED; |
| 123 }; | 122 }; |
| 124 | 123 |
| 125 ////////////////////////////////////////////////////////////////////////////// | 124 ////////////////////////////////////////////////////////////////////////////// |
| 126 | 125 |
| 127 #ifndef SK_BUILD_FOR_ANDROID | 126 #ifndef SK_BUILD_FOR_ANDROID |
| 128 static GM* MyFactory(void*) { return new BitmapCopyGM; } | 127 static GM* MyFactory(void*) { return new BitmapCopyGM; } |
| 129 static GMRegistry reg(MyFactory); | 128 static GMRegistry reg(MyFactory); |
| 130 #endif | 129 #endif |
| 131 } | 130 } |
| OLD | NEW |