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

Unified Diff: tools/skiaserve/skiaserve.cpp

Issue 2036173002: skiaserve: Add a flag to control hosted mode, i.e. when running on debugger.skia.org. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: \khan{Windows!} 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/skiaserve/skiaserve.cpp
diff --git a/tools/skiaserve/skiaserve.cpp b/tools/skiaserve/skiaserve.cpp
index 1a188dbddfa251090355496d797ac7ea39635369..e26af78f9e6fe4f36e863951b4cf2617cd168a06 100644
--- a/tools/skiaserve/skiaserve.cpp
+++ b/tools/skiaserve/skiaserve.cpp
@@ -26,6 +26,7 @@ using namespace Response;
DEFINE_int32(port, 8888, "The port to listen on.");
DEFINE_string(address, "127.0.0.1", "The address to bind to.");
+DEFINE_bool(hosted, false, "Running in hosted mode on debugger.skia.org.");
class UrlManager {
public:
@@ -115,7 +116,18 @@ int skiaserve_main() {
return 1;
}
- getchar();
+ if (FLAGS_hosted) {
+ while (1) {
+ SkDebugf("loop\n");
+ #if defined(SK_BUILD_FOR_WIN)
+ Sleep(60 * 1000);
+ #else
+ sleep(60);
+ #endif
+ }
+ } else {
+ getchar();
+ }
MHD_stop_daemon(daemon);
return 0;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698