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

Side by Side Diff: experimental/webtry/webtry.go

Issue 265453010: Set ulimits for the compile stage. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years, 7 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
« no previous file with comments | « experimental/webtry/safec++ ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 package main 1 package main
2 2
3 import ( 3 import (
4 "bytes" 4 "bytes"
5 "crypto/md5" 5 "crypto/md5"
6 "database/sql" 6 "database/sql"
7 "encoding/base64" 7 "encoding/base64"
8 "encoding/json" 8 "encoding/json"
9 "flag" 9 "flag"
10 "fmt" 10 "fmt"
11 _ "github.com/go-sql-driver/mysql" 11 _ "github.com/go-sql-driver/mysql"
12 _ "github.com/mattn/go-sqlite3" 12 _ "github.com/mattn/go-sqlite3"
13 htemplate "html/template" 13 htemplate "html/template"
14 "io/ioutil" 14 "io/ioutil"
15 "log" 15 "log"
16 "math/rand" 16 "math/rand"
17 "net/http" 17 "net/http"
18 "os" 18 "os"
19 "os/exec" 19 "os/exec"
20 "path/filepath" 20 "path/filepath"
21 "regexp" 21 "regexp"
22 "strings" 22 "strings"
23 "text/template" 23 "text/template"
24 "time" 24 "time"
25 ) 25 )
26 26
27 const ( 27 const (
28 » RESULT_COMPILE = `c++ -DSK_GAMMA_SRGB -DSK_GAMMA_APPLY_TO_A8 -DSK_SCALAR _TO_FLOAT_EXCLUDED -DSK_ALLOW_STATIC_GLOBAL_INITIALIZERS=1 -DSK_SUPPORT_GPU=0 -D SK_SUPPORT_OPENCL=0 -DSK_FORCE_DISTANCEFIELD_FONTS=0 -DSK_SCALAR_IS_FLOAT -DSK_C AN_USE_FLOAT -DSK_SAMPLES_FOR_X -DSK_BUILD_FOR_UNIX -DSK_USE_POSIX_THREADS -DSK_ SYSTEM_ZLIB=1 -DSK_DEBUG -DSK_DEVELOPER=1 -I../../src/core -I../../src/images -I ../../tools/flags -I../../include/config -I../../include/core -I../../include/pa thops -I../../include/pipe -I../../include/effects -I../../include/ports -I../.. /src/sfnt -I../../include/utils -I../../src/utils -I../../include/images -g -fno -exceptions -fstrict-aliasing -Wall -Wextra -Winit-self -Wpointer-arith -Wno-unu sed-parameter -m64 -fno-rtti -Wnon-virtual-dtor -c ../../../cache/%s.cpp -o ../. ./../cache/%s.o` 28 » RESULT_COMPILE = `../../experimental/webtry/safec++ -DSK_GAMMA_SRGB -DSK _GAMMA_APPLY_TO_A8 -DSK_SCALAR_TO_FLOAT_EXCLUDED -DSK_ALLOW_STATIC_GLOBAL_INITIA LIZERS=1 -DSK_SUPPORT_GPU=0 -DSK_SUPPORT_OPENCL=0 -DSK_FORCE_DISTANCEFIELD_FONTS =0 -DSK_SCALAR_IS_FLOAT -DSK_CAN_USE_FLOAT -DSK_SAMPLES_FOR_X -DSK_BUILD_FOR_UNI X -DSK_USE_POSIX_THREADS -DSK_SYSTEM_ZLIB=1 -DSK_DEBUG -DSK_DEVELOPER=1 -I../../ src/core -I../../src/images -I../../tools/flags -I../../include/config -I../../i nclude/core -I../../include/pathops -I../../include/pipe -I../../include/effects -I../../include/ports -I../../src/sfnt -I../../include/utils -I../../src/utils -I../../include/images -g -fno-exceptions -fstrict-aliasing -Wall -Wextra -Winit -self -Wpointer-arith -Wno-unused-parameter -m64 -fno-rtti -Wnon-virtual-dtor -c ../../../cache/%s.cpp -o ../../../cache/%s.o`
29 » LINK = `c++ -m64 -lstdc++ -lm -o ../../../inout/%s -Wl,--start -group ../../../cache/%s.o obj/experimental/webtry/webtry.main.o obj/gyp/libflag s.a libskia_images.a libskia_core.a libskia_effects.a obj/gyp/libjpeg.a obj/gyp/ libwebp_dec.a obj/gyp/libwebp_demux.a obj/gyp/libwebp_dsp.a obj/gyp/libwebp_enc. a obj/gyp/libwebp_utils.a libskia_utils.a libskia_opts.a libskia_opts_ssse3.a li bskia_ports.a libskia_sfnt.a -Wl,--end-group -lpng -lz -lgif -lpthread -lfontcon fig -ldl -lfreetype` 29 » LINK = `../../experimental/webtry/safec++ -m64 -lstdc++ -lm -o ../../../inout/%s -Wl,--start-group ../../../cache/%s.o obj/experimental/webtry /webtry.main.o obj/gyp/libflags.a libskia_images.a libskia_core.a libskia_effect s.a obj/gyp/libjpeg.a obj/gyp/libwebp_dec.a obj/gyp/libwebp_demux.a obj/gyp/libw ebp_dsp.a obj/gyp/libwebp_enc.a obj/gyp/libwebp_utils.a libskia_utils.a libskia_ opts.a libskia_opts_ssse3.a libskia_ports.a libskia_sfnt.a -Wl,--end-group -lpng -lz -lgif -lpthread -lfontconfig -ldl -lfreetype`
30 DEFAULT_SAMPLE = `SkPaint p; 30 DEFAULT_SAMPLE = `SkPaint p;
31 p.setColor(SK_ColorRED); 31 p.setColor(SK_ColorRED);
32 p.setAntiAlias(true); 32 p.setAntiAlias(true);
33 p.setStyle(SkPaint::kStroke_Style); 33 p.setStyle(SkPaint::kStroke_Style);
34 p.setStrokeWidth(10); 34 p.setStrokeWidth(10);
35 35
36 canvas->drawLine(20, 20, 100, 100, p); 36 canvas->drawLine(20, 20, 100, 100, p);
37 ` 37 `
38 // Don't increase above 2^16 w/o altering the db tables to accept someth ing bigger than TEXT. 38 // Don't increase above 2^16 w/o altering the db tables to accept someth ing bigger than TEXT.
39 MAX_TRY_SIZE = 64000 39 MAX_TRY_SIZE = 64000
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 http.HandleFunc("/w/", workspaceHandler) 677 http.HandleFunc("/w/", workspaceHandler)
678 http.HandleFunc("/recent/", recentHandler) 678 http.HandleFunc("/recent/", recentHandler)
679 http.HandleFunc("/iframe/", iframeHandler) 679 http.HandleFunc("/iframe/", iframeHandler)
680 http.HandleFunc("/json/", tryInfoHandler) 680 http.HandleFunc("/json/", tryInfoHandler)
681 http.HandleFunc("/css/", cssHandler) 681 http.HandleFunc("/css/", cssHandler)
682 http.Handle("/js/", http.FileServer(http.Dir("./"))) 682 http.Handle("/js/", http.FileServer(http.Dir("./")))
683 // TODO Break out /c/ as it's own handler. 683 // TODO Break out /c/ as it's own handler.
684 http.HandleFunc("/", mainHandler) 684 http.HandleFunc("/", mainHandler)
685 log.Fatal(http.ListenAndServe(*port, nil)) 685 log.Fatal(http.ListenAndServe(*port, nil))
686 } 686 }
OLDNEW
« no previous file with comments | « experimental/webtry/safec++ ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698