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

Side by Side Diff: tools/skiaserve/skiaserve.cpp

Issue 1760583003: Remove unused tools and unused includes of SkImageDecoder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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 "Request.h" 8 #include "Request.h"
9 #include "Response.h" 9 #include "Response.h"
10 10
11 #include "SkCommandLineFlags.h" 11 #include "SkCommandLineFlags.h"
12 12
13 #include "microhttpd.h" 13 #include "microhttpd.h"
14 14
15 #include "urlhandlers/UrlHandler.h" 15 #include "urlhandlers/UrlHandler.h"
16 #include <sys/socket.h> 16 #include <sys/socket.h>
17 17
18 using namespace Response; 18 using namespace Response;
19 19
20 // To get image decoders linked in we have to do the below magic
scroggo 2016/03/03 16:14:09 For this and others, I take it they needed the ima
msarett 2016/03/03 16:18:54 That's what I think. The code compiles fine now w
21 #include "SkForceLinking.h"
22 #include "SkImageDecoder.h"
23 __SK_FORCE_IMAGE_DECODER_LINKING;
24
25 DEFINE_int32(port, 8888, "The port to listen on."); 20 DEFINE_int32(port, 8888, "The port to listen on.");
26 21
27 class UrlManager { 22 class UrlManager {
28 public: 23 public:
29 UrlManager() { 24 UrlManager() {
30 // Register handlers 25 // Register handlers
31 fHandlers.push_back(new RootHandler); 26 fHandlers.push_back(new RootHandler);
32 fHandlers.push_back(new PostHandler); 27 fHandlers.push_back(new PostHandler);
33 fHandlers.push_back(new ImgHandler); 28 fHandlers.push_back(new ImgHandler);
34 fHandlers.push_back(new ClipAlphaHandler); 29 fHandlers.push_back(new ClipAlphaHandler);
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 MHD_stop_daemon(daemon); 90 MHD_stop_daemon(daemon);
96 return 0; 91 return 0;
97 } 92 }
98 93
99 #if !defined SK_BUILD_FOR_IOS 94 #if !defined SK_BUILD_FOR_IOS
100 int main(int argc, char** argv) { 95 int main(int argc, char** argv) {
101 SkCommandLineFlags::Parse(argc, argv); 96 SkCommandLineFlags::Parse(argc, argv);
102 return skiaserve_main(); 97 return skiaserve_main();
103 } 98 }
104 #endif 99 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698