Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(515)

Side by Side Diff: tools/viewer/Viewer.cpp

Issue 2050613003: Support resize in Android Viewer App (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: OpenGL Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 DEFINE_string2(match, m, nullptr, 46 DEFINE_string2(match, m, nullptr,
47 "[~][^]substring[$] [...] of bench name to run.\n" 47 "[~][^]substring[$] [...] of bench name to run.\n"
48 "Multiple matches may be separated by spaces.\n" 48 "Multiple matches may be separated by spaces.\n"
49 "~ causes a matching bench to always be skipped\n" 49 "~ causes a matching bench to always be skipped\n"
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, false, "Run with Vulkan.");
djsollen 2016/06/09 18:34:21 was this intended for this CL?
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 " [Raster]"
62 }; 62 };
63 63
64 const char* kName = "name"; 64 const char* kName = "name";
65 const char* kValue = "value"; 65 const char* kValue = "value";
66 const char* kOptions = "options"; 66 const char* kOptions = "options";
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 } 501 }
502 } else if (stateName.equals(kSoftkeyStateName)) { 502 } else if (stateName.equals(kSoftkeyStateName)) {
503 if (!stateValue.equals(kSoftkeyHint)) { 503 if (!stateValue.equals(kSoftkeyHint)) {
504 fCommands.onSoftkey(stateValue); 504 fCommands.onSoftkey(stateValue);
505 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
506 } 506 }
507 } else { 507 } else {
508 SkDebugf("Unknown stateName: %s", stateName.c_str()); 508 SkDebugf("Unknown stateName: %s", stateName.c_str());
509 } 509 }
510 } 510 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698