d7b3845f3d
Add a real implementation for gm_knowledge.h This depends on the presence of files in the form $GMK_DIR/foo/{max,min}.png The implementation also writes out failures in a report directory. Add a utility: experimental/make_gmkb which is a stand-alone go executable that generates the foo/{max,min}.png data. tools/skqp/README.md has instructions on running SkQP. Also: add SkFontMgrPriv.h Change-Id: Ibe1e9a7e7de143d14eee3877f5f2d2d8713f7f49 Reviewed-on: https://skia-review.googlesource.com/65380 Reviewed-by: Yuqian Li <liyuqian@google.com> Commit-Queue: Hal Canary <halcanary@google.com>
22 lines
471 B
Python
Executable File
22 lines
471 B
Python
Executable File
#! /usr/bin/env python2
|
|
# Copyright 2017 Google Inc.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
import os
|
|
import subprocess
|
|
import sys
|
|
|
|
def sysopen(arg):
|
|
plat = sys.platform
|
|
if plat.startswith('darwin'):
|
|
subprocess.call(["open", arg])
|
|
elif plat.startswith('win'):
|
|
os.startfile(arg)
|
|
else:
|
|
subprocess.call(["xdg-open", arg])
|
|
|
|
if __name__ == '__main__':
|
|
for a in sys.argv[1:]:
|
|
sysopen(a)
|