| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 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 #include "Viewer.h" | 8 #include "Viewer.h" |
| 9 | 9 |
| 10 #include "GMSlide.h" | 10 #include "GMSlide.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 "^ requires the start of the bench to match\n" | 50 "^ requires the start of the bench to match\n" |
| 51 "$ requires the end of the bench to match\n" | 51 "$ requires the end of the bench to match\n" |
| 52 "^ and $ requires an exact match\n" | 52 "^ and $ requires an exact match\n" |
| 53 "If a bench does not match any list entry,\n" | 53 "If a bench does not match any list entry,\n" |
| 54 "it is skipped unless some list entry starts with ~"); | 54 "it is skipped unless some list entry starts with ~"); |
| 55 DEFINE_string(skps, "skps", "Directory to read skps from."); | 55 DEFINE_string(skps, "skps", "Directory to read skps from."); |
| 56 DEFINE_bool(vulkan, true, "Run with Vulkan."); | 56 DEFINE_bool(vulkan, true, "Run with Vulkan."); |
| 57 | 57 |
| 58 const char *kBackendTypeStrings[sk_app::Window::kBackendTypeCount] = { | 58 const char *kBackendTypeStrings[sk_app::Window::kBackendTypeCount] = { |
| 59 " [OpenGL]", | 59 " [OpenGL]", |
| 60 " [Vulkan]" | 60 " [Vulkan]", |
| 61 " [Raster]" |
| 61 }; | 62 }; |
| 62 | 63 |
| 63 const char* kName = "name"; | 64 const char* kName = "name"; |
| 64 const char* kValue = "value"; | 65 const char* kValue = "value"; |
| 65 const char* kOptions = "options"; | 66 const char* kOptions = "options"; |
| 66 const char* kSlideStateName = "Slide"; | 67 const char* kSlideStateName = "Slide"; |
| 67 const char* kBackendStateName = "Backend"; | 68 const char* kBackendStateName = "Backend"; |
| 68 const char* kSoftkeyStateName = "Softkey"; | 69 const char* kSoftkeyStateName = "Softkey"; |
| 69 const char* kSoftkeyHint = "Please select a softkey"; | 70 const char* kSoftkeyHint = "Please select a softkey"; |
| 70 const char* kFpsStateName = "FPS"; | 71 const char* kFpsStateName = "FPS"; |
| (...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 500 } | 501 } |
| 501 } else if (stateName.equals(kSoftkeyStateName)) { | 502 } else if (stateName.equals(kSoftkeyStateName)) { |
| 502 if (!stateValue.equals(kSoftkeyHint)) { | 503 if (!stateValue.equals(kSoftkeyHint)) { |
| 503 fCommands.onSoftkey(stateValue); | 504 fCommands.onSoftkey(stateValue); |
| 504 updateUIState(); // This is still needed to reset the value to kSoft
keyHint | 505 updateUIState(); // This is still needed to reset the value to kSoft
keyHint |
| 505 } | 506 } |
| 506 } else { | 507 } else { |
| 507 SkDebugf("Unknown stateName: %s", stateName.c_str()); | 508 SkDebugf("Unknown stateName: %s", stateName.c_str()); |
| 508 } | 509 } |
| 509 } | 510 } |
| OLD | NEW |