Definition at line 41 of file tester.py.
◆ __init__()
def tester.SkiaServeTester.__init__ |
( |
|
self, |
|
|
|
url, |
|
|
|
output_dir |
|
) |
| |
Definition at line 42 of file tester.py.
42 def __init__(self, url, output_dir):
43 self.url = url
44 self.output_dir = output_dir
45
46
47 self.skp = ''
48 self.skp_name = ''
49
◆ batchList()
def tester.SkiaServeTester.batchList |
( |
|
self | ) |
|
Definition at line 84 of file tester.py.
84 def batchList(self):
85 path = self.output_dir + '/' + self.skp_name + '.batches.json'
87
def WriteJson(request, path)
◆ cmd()
def tester.SkiaServeTester.cmd |
( |
|
self | ) |
|
Definition at line 64 of file tester.py.
65 path = self.output_dir + '/' + self.skp_name + '.cmd.json'
67
◆ disable_gpu()
def tester.SkiaServeTester.disable_gpu |
( |
|
self | ) |
|
Definition at line 77 of file tester.py.
77 def disable_gpu(self):
78 return Check(requests.post(self.url +
'/enableGPU/0'))
79
◆ enable_gpu()
def tester.SkiaServeTester.enable_gpu |
( |
|
self | ) |
|
Definition at line 74 of file tester.py.
74 def enable_gpu(self):
75 return Check(requests.post(self.url +
'/enableGPU/1'))
76
◆ img()
def tester.SkiaServeTester.img |
( |
|
self | ) |
|
Definition at line 68 of file tester.py.
68 def img(self):
69 opcount = self.opcount()
70 url = self.url + '/img/' + str(opcount)
71 path = self.output_dir + '/' + self.skp_name + '.png'
73
def WritePng(request, path)
◆ info()
def tester.SkiaServeTester.info |
( |
|
self | ) |
|
Definition at line 54 of file tester.py.
55 return Check(requests.get(self.url +
'/info'))
56
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
◆ opcount()
def tester.SkiaServeTester.opcount |
( |
|
self | ) |
|
Definition at line 80 of file tester.py.
80 def opcount(self):
81 r = self.cmd()
82 return len(r.json()[
'commands']) - 1
83
◆ post()
def tester.SkiaServeTester.post |
( |
|
self | ) |
|
Definition at line 57 of file tester.py.
57 def post(self):
58 with open(self.skp, 'rb') as payload:
59 files = {'file': payload}
60
61
62 return Check(requests.post(self.url +
'/new', files=files))
63
◆ set_skp()
def tester.SkiaServeTester.set_skp |
( |
|
self, |
|
|
|
skp_dir, |
|
|
|
skp_name |
|
) |
| |
Definition at line 50 of file tester.py.
50 def set_skp(self, skp_dir, skp_name):
51 self.skp = skp_dir + '/' + skp_name
52 self.skp_name = skp_name
53
◆ output_dir
tester.SkiaServeTester.output_dir |
◆ skp
tester.SkiaServeTester.skp |
◆ skp_name
tester.SkiaServeTester.skp_name |
◆ url
tester.SkiaServeTester.url |
The documentation for this class was generated from the following file:
- third_party/skia/tools/skiaserve/tester/tester.py