[canvaskit] Move from experimental to modules
Bug: skia: Change-Id: I2ffd54cf81c974f3a80103e1726a06067cc90d82 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/200044 Reviewed-by: Mike Reed <reed@google.com> Reviewed-by: Florin Malita <fmalita@chromium.org> Commit-Queue: Kevin Lubick <kjlubick@google.com>
@ -15,7 +15,7 @@ RUN cd /tmp/skia/skia \
|
||||
RUN /tmp/skia/skia/modules/pathkit/compile.sh
|
||||
|
||||
# CanvasKit should be in /tmp/skia/skia/out/canvaskit_wasm
|
||||
RUN /tmp/skia/skia/experimental/canvaskit/compile.sh
|
||||
RUN /tmp/skia/skia/modules/canvaskit/compile.sh
|
||||
|
||||
RUN cd /tmp/skia/skia && git rev-parse HEAD > /tmp/VERSION
|
||||
|
||||
|
@ -1,3 +0,0 @@
|
||||
To generate the files in here:
|
||||
|
||||
python tools/embed_resources.py --name SK_EMBEDDED_FONTS --input ~/Downloads/NotoMono-Regular.ttf --output experimental/canvaskit/NotoMono-Regular.ttf.cpp --align 4
|
@ -112,8 +112,8 @@
|
||||
"cmd": [
|
||||
"python",
|
||||
"-u",
|
||||
"import errno\nimport os\nimport shutil\nimport sys\n\ncopy_dest = sys.argv[1]\nbase_dir = sys.argv[2]\nbundle_name = sys.argv[3]\nout_dir = sys.argv[4]\n\n# Clean out old binaries (if any)\ntry:\n shutil.rmtree(copy_dest)\nexcept OSError as e:\n if e.errno != errno.ENOENT:\n raise\n\n# Make folder\ntry:\n os.makedirs(copy_dest)\nexcept OSError as e:\n if e.errno != errno.EEXIST:\n raise\n\n# Copy binaries (canvaskit.js and canvaskit.wasm) to where the karma tests\n# expect them ($SKIA_ROOT/experimental/canvaskit/canvaskit/bin/)\ndest = os.path.join(copy_dest, 'canvaskit.js')\nshutil.copyfile(os.path.join(base_dir, 'canvaskit.js'), dest)\nos.chmod(dest, 0o644) # important, otherwise non-privileged docker can't read.\n\nif bundle_name:\n dest = os.path.join(copy_dest, bundle_name)\n shutil.copyfile(os.path.join(base_dir, bundle_name), dest)\n os.chmod(dest, 0o644) # important, otherwise non-privileged docker can't read.\n\n# Prepare output folder, api.file.ensure_directory doesn't touch\n# the permissions of the out directory if it already exists.\nos.chmod(out_dir, 0o777) # important, otherwise non-privileged docker can't write.\n",
|
||||
"[START_DIR]/cache/work/skia/experimental/canvaskit/canvaskit/bin",
|
||||
"import errno\nimport os\nimport shutil\nimport sys\n\ncopy_dest = sys.argv[1]\nbase_dir = sys.argv[2]\nbundle_name = sys.argv[3]\nout_dir = sys.argv[4]\n\n# Clean out old binaries (if any)\ntry:\n shutil.rmtree(copy_dest)\nexcept OSError as e:\n if e.errno != errno.ENOENT:\n raise\n\n# Make folder\ntry:\n os.makedirs(copy_dest)\nexcept OSError as e:\n if e.errno != errno.EEXIST:\n raise\n\n# Copy binaries (canvaskit.js and canvaskit.wasm) to where the karma tests\n# expect them ($SKIA_ROOT/modules/canvaskit/canvaskit/bin/)\ndest = os.path.join(copy_dest, 'canvaskit.js')\nshutil.copyfile(os.path.join(base_dir, 'canvaskit.js'), dest)\nos.chmod(dest, 0o644) # important, otherwise non-privileged docker can't read.\n\nif bundle_name:\n dest = os.path.join(copy_dest, bundle_name)\n shutil.copyfile(os.path.join(base_dir, bundle_name), dest)\n os.chmod(dest, 0o644) # important, otherwise non-privileged docker can't read.\n\n# Prepare output folder, api.file.ensure_directory doesn't touch\n# the permissions of the out directory if it already exists.\nos.chmod(out_dir, 0o777) # important, otherwise non-privileged docker can't write.\n",
|
||||
"[START_DIR]/cache/work/skia/modules/canvaskit/canvaskit/bin",
|
||||
"[START_DIR]/build",
|
||||
"canvaskit.wasm",
|
||||
"[START_DIR]/[SWARM_OUT_DIR]"
|
||||
@ -146,7 +146,7 @@
|
||||
"@@@STEP_LOG_LINE@python.inline@ raise@@@",
|
||||
"@@@STEP_LOG_LINE@python.inline@@@@",
|
||||
"@@@STEP_LOG_LINE@python.inline@# Copy binaries (canvaskit.js and canvaskit.wasm) to where the karma tests@@@",
|
||||
"@@@STEP_LOG_LINE@python.inline@# expect them ($SKIA_ROOT/experimental/canvaskit/canvaskit/bin/)@@@",
|
||||
"@@@STEP_LOG_LINE@python.inline@# expect them ($SKIA_ROOT/modules/canvaskit/canvaskit/bin/)@@@",
|
||||
"@@@STEP_LOG_LINE@python.inline@dest = os.path.join(copy_dest, 'canvaskit.js')@@@",
|
||||
"@@@STEP_LOG_LINE@python.inline@shutil.copyfile(os.path.join(base_dir, 'canvaskit.js'), dest)@@@",
|
||||
"@@@STEP_LOG_LINE@python.inline@os.chmod(dest, 0o644) # important, otherwise non-privileged docker can't read.@@@",
|
||||
|
@ -114,8 +114,8 @@
|
||||
"cmd": [
|
||||
"python",
|
||||
"-u",
|
||||
"import errno\nimport os\nimport shutil\nimport sys\n\ncopy_dest = sys.argv[1]\nbase_dir = sys.argv[2]\nbundle_name = sys.argv[3]\nout_dir = sys.argv[4]\n\n# Clean out old binaries (if any)\ntry:\n shutil.rmtree(copy_dest)\nexcept OSError as e:\n if e.errno != errno.ENOENT:\n raise\n\n# Make folder\ntry:\n os.makedirs(copy_dest)\nexcept OSError as e:\n if e.errno != errno.EEXIST:\n raise\n\n# Copy binaries (canvaskit.js and canvaskit.wasm) to where the karma tests\n# expect them ($SKIA_ROOT/experimental/canvaskit/canvaskit/bin/)\ndest = os.path.join(copy_dest, 'canvaskit.js')\nshutil.copyfile(os.path.join(base_dir, 'canvaskit.js'), dest)\nos.chmod(dest, 0o644) # important, otherwise non-privileged docker can't read.\n\nif bundle_name:\n dest = os.path.join(copy_dest, bundle_name)\n shutil.copyfile(os.path.join(base_dir, bundle_name), dest)\n os.chmod(dest, 0o644) # important, otherwise non-privileged docker can't read.\n\n# Prepare output folder, api.file.ensure_directory doesn't touch\n# the permissions of the out directory if it already exists.\nos.chmod(out_dir, 0o777) # important, otherwise non-privileged docker can't write.\n",
|
||||
"[START_DIR]/cache/work/skia/experimental/canvaskit/canvaskit/bin",
|
||||
"import errno\nimport os\nimport shutil\nimport sys\n\ncopy_dest = sys.argv[1]\nbase_dir = sys.argv[2]\nbundle_name = sys.argv[3]\nout_dir = sys.argv[4]\n\n# Clean out old binaries (if any)\ntry:\n shutil.rmtree(copy_dest)\nexcept OSError as e:\n if e.errno != errno.ENOENT:\n raise\n\n# Make folder\ntry:\n os.makedirs(copy_dest)\nexcept OSError as e:\n if e.errno != errno.EEXIST:\n raise\n\n# Copy binaries (canvaskit.js and canvaskit.wasm) to where the karma tests\n# expect them ($SKIA_ROOT/modules/canvaskit/canvaskit/bin/)\ndest = os.path.join(copy_dest, 'canvaskit.js')\nshutil.copyfile(os.path.join(base_dir, 'canvaskit.js'), dest)\nos.chmod(dest, 0o644) # important, otherwise non-privileged docker can't read.\n\nif bundle_name:\n dest = os.path.join(copy_dest, bundle_name)\n shutil.copyfile(os.path.join(base_dir, bundle_name), dest)\n os.chmod(dest, 0o644) # important, otherwise non-privileged docker can't read.\n\n# Prepare output folder, api.file.ensure_directory doesn't touch\n# the permissions of the out directory if it already exists.\nos.chmod(out_dir, 0o777) # important, otherwise non-privileged docker can't write.\n",
|
||||
"[START_DIR]/cache/work/skia/modules/canvaskit/canvaskit/bin",
|
||||
"[START_DIR]/build",
|
||||
"canvaskit.wasm",
|
||||
"[START_DIR]/[SWARM_OUT_DIR]"
|
||||
@ -148,7 +148,7 @@
|
||||
"@@@STEP_LOG_LINE@python.inline@ raise@@@",
|
||||
"@@@STEP_LOG_LINE@python.inline@@@@",
|
||||
"@@@STEP_LOG_LINE@python.inline@# Copy binaries (canvaskit.js and canvaskit.wasm) to where the karma tests@@@",
|
||||
"@@@STEP_LOG_LINE@python.inline@# expect them ($SKIA_ROOT/experimental/canvaskit/canvaskit/bin/)@@@",
|
||||
"@@@STEP_LOG_LINE@python.inline@# expect them ($SKIA_ROOT/modules/canvaskit/canvaskit/bin/)@@@",
|
||||
"@@@STEP_LOG_LINE@python.inline@dest = os.path.join(copy_dest, 'canvaskit.js')@@@",
|
||||
"@@@STEP_LOG_LINE@python.inline@shutil.copyfile(os.path.join(base_dir, 'canvaskit.js'), dest)@@@",
|
||||
"@@@STEP_LOG_LINE@python.inline@os.chmod(dest, 0o644) # important, otherwise non-privileged docker can't read.@@@",
|
||||
|
@ -33,7 +33,7 @@ def RunSteps(api):
|
||||
|
||||
# The karma script is configured to look in ./canvaskit/bin/ for
|
||||
# the test files to load, so we must copy them there (see Set up for docker).
|
||||
copy_dest = checkout_root.join('skia', 'experimental', 'canvaskit',
|
||||
copy_dest = checkout_root.join('skia', 'modules', 'canvaskit',
|
||||
'canvaskit', 'bin')
|
||||
|
||||
base_dir = api.vars.build_dir
|
||||
@ -66,7 +66,7 @@ except OSError as e:
|
||||
raise
|
||||
|
||||
# Copy binaries (canvaskit.js and canvaskit.wasm) to where the karma tests
|
||||
# expect them ($SKIA_ROOT/experimental/canvaskit/canvaskit/bin/)
|
||||
# expect them ($SKIA_ROOT/modules/canvaskit/canvaskit/bin/)
|
||||
dest = os.path.join(copy_dest, 'canvaskit.js')
|
||||
shutil.copyfile(os.path.join(base_dir, 'canvaskit.js'), dest)
|
||||
os.chmod(dest, 0o644) # important, otherwise non-privileged docker can't read.
|
||||
|
@ -112,8 +112,8 @@
|
||||
"cmd": [
|
||||
"python",
|
||||
"-u",
|
||||
"import errno\nimport os\nimport shutil\nimport sys\n\ncopy_dest = sys.argv[1]\nbase_dir = sys.argv[2]\nbundle_name = sys.argv[3]\nout_dir = sys.argv[4]\n\n# Clean out old binaries (if any)\ntry:\n shutil.rmtree(copy_dest)\nexcept OSError as e:\n if e.errno != errno.ENOENT:\n raise\n\n# Make folder\ntry:\n os.makedirs(copy_dest)\nexcept OSError as e:\n if e.errno != errno.EEXIST:\n raise\n\n# Copy binaries (canvaskit.js and canvaskit.wasm) to where the karma tests\n# expect them ($SKIA_ROOT/experimental/canvaskit/canvaskit/bin/)\ndest = os.path.join(copy_dest, 'canvaskit.js')\nshutil.copyfile(os.path.join(base_dir, 'canvaskit.js'), dest)\nos.chmod(dest, 0o644) # important, otherwise non-privileged docker can't read.\n\nif bundle_name:\n dest = os.path.join(copy_dest, bundle_name)\n shutil.copyfile(os.path.join(base_dir, bundle_name), dest)\n os.chmod(dest, 0o644) # important, otherwise non-privileged docker can't read.\n\n# Prepare output folder, api.file.ensure_directory doesn't touch\n# the permissions of the out directory if it already exists.\nos.chmod(out_dir, 0o777) # important, otherwise non-privileged docker can't write.\n",
|
||||
"[START_DIR]/cache/work/skia/experimental/canvaskit/canvaskit/bin",
|
||||
"import errno\nimport os\nimport shutil\nimport sys\n\ncopy_dest = sys.argv[1]\nbase_dir = sys.argv[2]\nbundle_name = sys.argv[3]\nout_dir = sys.argv[4]\n\n# Clean out old binaries (if any)\ntry:\n shutil.rmtree(copy_dest)\nexcept OSError as e:\n if e.errno != errno.ENOENT:\n raise\n\n# Make folder\ntry:\n os.makedirs(copy_dest)\nexcept OSError as e:\n if e.errno != errno.EEXIST:\n raise\n\n# Copy binaries (canvaskit.js and canvaskit.wasm) to where the karma tests\n# expect them ($SKIA_ROOT/modules/canvaskit/canvaskit/bin/)\ndest = os.path.join(copy_dest, 'canvaskit.js')\nshutil.copyfile(os.path.join(base_dir, 'canvaskit.js'), dest)\nos.chmod(dest, 0o644) # important, otherwise non-privileged docker can't read.\n\nif bundle_name:\n dest = os.path.join(copy_dest, bundle_name)\n shutil.copyfile(os.path.join(base_dir, bundle_name), dest)\n os.chmod(dest, 0o644) # important, otherwise non-privileged docker can't read.\n\n# Prepare output folder, api.file.ensure_directory doesn't touch\n# the permissions of the out directory if it already exists.\nos.chmod(out_dir, 0o777) # important, otherwise non-privileged docker can't write.\n",
|
||||
"[START_DIR]/cache/work/skia/modules/canvaskit/canvaskit/bin",
|
||||
"[START_DIR]/build",
|
||||
"canvaskit.wasm",
|
||||
"[START_DIR]/[SWARM_OUT_DIR]"
|
||||
@ -146,7 +146,7 @@
|
||||
"@@@STEP_LOG_LINE@python.inline@ raise@@@",
|
||||
"@@@STEP_LOG_LINE@python.inline@@@@",
|
||||
"@@@STEP_LOG_LINE@python.inline@# Copy binaries (canvaskit.js and canvaskit.wasm) to where the karma tests@@@",
|
||||
"@@@STEP_LOG_LINE@python.inline@# expect them ($SKIA_ROOT/experimental/canvaskit/canvaskit/bin/)@@@",
|
||||
"@@@STEP_LOG_LINE@python.inline@# expect them ($SKIA_ROOT/modules/canvaskit/canvaskit/bin/)@@@",
|
||||
"@@@STEP_LOG_LINE@python.inline@dest = os.path.join(copy_dest, 'canvaskit.js')@@@",
|
||||
"@@@STEP_LOG_LINE@python.inline@shutil.copyfile(os.path.join(base_dir, 'canvaskit.js'), dest)@@@",
|
||||
"@@@STEP_LOG_LINE@python.inline@os.chmod(dest, 0o644) # important, otherwise non-privileged docker can't read.@@@",
|
||||
|
@ -114,8 +114,8 @@
|
||||
"cmd": [
|
||||
"python",
|
||||
"-u",
|
||||
"import errno\nimport os\nimport shutil\nimport sys\n\ncopy_dest = sys.argv[1]\nbase_dir = sys.argv[2]\nbundle_name = sys.argv[3]\nout_dir = sys.argv[4]\n\n# Clean out old binaries (if any)\ntry:\n shutil.rmtree(copy_dest)\nexcept OSError as e:\n if e.errno != errno.ENOENT:\n raise\n\n# Make folder\ntry:\n os.makedirs(copy_dest)\nexcept OSError as e:\n if e.errno != errno.EEXIST:\n raise\n\n# Copy binaries (canvaskit.js and canvaskit.wasm) to where the karma tests\n# expect them ($SKIA_ROOT/experimental/canvaskit/canvaskit/bin/)\ndest = os.path.join(copy_dest, 'canvaskit.js')\nshutil.copyfile(os.path.join(base_dir, 'canvaskit.js'), dest)\nos.chmod(dest, 0o644) # important, otherwise non-privileged docker can't read.\n\nif bundle_name:\n dest = os.path.join(copy_dest, bundle_name)\n shutil.copyfile(os.path.join(base_dir, bundle_name), dest)\n os.chmod(dest, 0o644) # important, otherwise non-privileged docker can't read.\n\n# Prepare output folder, api.file.ensure_directory doesn't touch\n# the permissions of the out directory if it already exists.\nos.chmod(out_dir, 0o777) # important, otherwise non-privileged docker can't write.\n",
|
||||
"[START_DIR]/cache/work/skia/experimental/canvaskit/canvaskit/bin",
|
||||
"import errno\nimport os\nimport shutil\nimport sys\n\ncopy_dest = sys.argv[1]\nbase_dir = sys.argv[2]\nbundle_name = sys.argv[3]\nout_dir = sys.argv[4]\n\n# Clean out old binaries (if any)\ntry:\n shutil.rmtree(copy_dest)\nexcept OSError as e:\n if e.errno != errno.ENOENT:\n raise\n\n# Make folder\ntry:\n os.makedirs(copy_dest)\nexcept OSError as e:\n if e.errno != errno.EEXIST:\n raise\n\n# Copy binaries (canvaskit.js and canvaskit.wasm) to where the karma tests\n# expect them ($SKIA_ROOT/modules/canvaskit/canvaskit/bin/)\ndest = os.path.join(copy_dest, 'canvaskit.js')\nshutil.copyfile(os.path.join(base_dir, 'canvaskit.js'), dest)\nos.chmod(dest, 0o644) # important, otherwise non-privileged docker can't read.\n\nif bundle_name:\n dest = os.path.join(copy_dest, bundle_name)\n shutil.copyfile(os.path.join(base_dir, bundle_name), dest)\n os.chmod(dest, 0o644) # important, otherwise non-privileged docker can't read.\n\n# Prepare output folder, api.file.ensure_directory doesn't touch\n# the permissions of the out directory if it already exists.\nos.chmod(out_dir, 0o777) # important, otherwise non-privileged docker can't write.\n",
|
||||
"[START_DIR]/cache/work/skia/modules/canvaskit/canvaskit/bin",
|
||||
"[START_DIR]/build",
|
||||
"canvaskit.wasm",
|
||||
"[START_DIR]/[SWARM_OUT_DIR]"
|
||||
@ -148,7 +148,7 @@
|
||||
"@@@STEP_LOG_LINE@python.inline@ raise@@@",
|
||||
"@@@STEP_LOG_LINE@python.inline@@@@",
|
||||
"@@@STEP_LOG_LINE@python.inline@# Copy binaries (canvaskit.js and canvaskit.wasm) to where the karma tests@@@",
|
||||
"@@@STEP_LOG_LINE@python.inline@# expect them ($SKIA_ROOT/experimental/canvaskit/canvaskit/bin/)@@@",
|
||||
"@@@STEP_LOG_LINE@python.inline@# expect them ($SKIA_ROOT/modules/canvaskit/canvaskit/bin/)@@@",
|
||||
"@@@STEP_LOG_LINE@python.inline@dest = os.path.join(copy_dest, 'canvaskit.js')@@@",
|
||||
"@@@STEP_LOG_LINE@python.inline@shutil.copyfile(os.path.join(base_dir, 'canvaskit.js'), dest)@@@",
|
||||
"@@@STEP_LOG_LINE@python.inline@os.chmod(dest, 0o644) # important, otherwise non-privileged docker can't read.@@@",
|
||||
|
@ -33,7 +33,7 @@ def RunSteps(api):
|
||||
|
||||
# The karma script is configured to look in ./canvaskit/bin/ for
|
||||
# the test files to load, so we must copy them there (see Set up for docker).
|
||||
copy_dest = checkout_root.join('skia', 'experimental', 'canvaskit',
|
||||
copy_dest = checkout_root.join('skia', 'modules', 'canvaskit',
|
||||
'canvaskit', 'bin')
|
||||
|
||||
base_dir = api.vars.build_dir
|
||||
@ -66,7 +66,7 @@ except OSError as e:
|
||||
raise
|
||||
|
||||
# Copy binaries (canvaskit.js and canvaskit.wasm) to where the karma tests
|
||||
# expect them ($SKIA_ROOT/experimental/canvaskit/canvaskit/bin/)
|
||||
# expect them ($SKIA_ROOT/modules/canvaskit/canvaskit/bin/)
|
||||
dest = os.path.join(copy_dest, 'canvaskit.js')
|
||||
shutil.copyfile(os.path.join(base_dir, 'canvaskit.js'), dest)
|
||||
os.chmod(dest, 0o644) # important, otherwise non-privileged docker can't read.
|
||||
|
@ -20,7 +20,7 @@ set -e
|
||||
|
||||
#BASE_DIR is the dir this script is in ($SKIA_ROOT/infra/canvaskit)
|
||||
BASE_DIR=`cd $(dirname ${BASH_SOURCE[0]}) && pwd`
|
||||
CANVASKIT_DIR=$BASE_DIR/../../experimental/canvaskit
|
||||
CANVASKIT_DIR=$BASE_DIR/../../modules/canvaskit
|
||||
|
||||
BUILD_DIR=/OUT $CANVASKIT_DIR/compile.sh $@
|
||||
|
||||
|
@ -15,14 +15,14 @@ set -ex
|
||||
|
||||
#BASE_DIR is the dir this script is in ($SKIA_ROOT/infra/pathkit)
|
||||
BASE_DIR=`cd $(dirname ${BASH_SOURCE[0]}) && pwd`
|
||||
PATHKIT_DIR=$BASE_DIR/../../experimental/canvaskit
|
||||
CANVASKIT_DIR=$BASE_DIR/../../modules/canvaskit
|
||||
|
||||
# Start the aggregator in the background
|
||||
/opt/perf-aggregator $@ &
|
||||
# Run the tests 10 times to get a wide set of data
|
||||
for i in `seq 1 10`;
|
||||
do
|
||||
npx karma start $PATHKIT_DIR/karma.bench.conf.js --single-run
|
||||
npx karma start $CANVASKIT_DIR/karma.bench.conf.js --single-run
|
||||
done
|
||||
# Tell the aggregator to dump the json
|
||||
# This curl command gets the HTTP code and stores it into $CODE
|
||||
|
@ -15,7 +15,7 @@ set -ex
|
||||
|
||||
#BASE_DIR is the dir this script is in ($SKIA_ROOT/infra/canvaskit)
|
||||
BASE_DIR=`cd $(dirname ${BASH_SOURCE[0]}) && pwd`
|
||||
CANVASKIT_DIR=$BASE_DIR/../../experimental/canvaskit
|
||||
CANVASKIT_DIR=$BASE_DIR/../../modules/canvaskit
|
||||
|
||||
# Start the aggregator in the background
|
||||
/opt/gold-aggregator $@ &
|
||||
|
@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Changed
|
||||
- Location in Skia Git repo now `modules/canvaskit` (was `experimental/canvaskit`)
|
||||
|
||||
## [0.5.0] - 2019-03-08
|
||||
|
@ -3,7 +3,7 @@
|
||||
"version": "0.5.0",
|
||||
"description": "A WASM version of Skia's Canvas API",
|
||||
"main": "bin/canvaskit.js",
|
||||
"homepage": "https://github.com/google/skia/tree/master/experimental/canvaskit",
|
||||
"homepage": "https://github.com/google/skia/tree/master/modules/canvaskit",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
Before Width: | Height: | Size: 611 KiB After Width: | Height: | Size: 611 KiB |
@ -5,13 +5,6 @@
|
||||
* found in the LICENSE file.
|
||||
*/
|
||||
|
||||
#if SK_SUPPORT_GPU
|
||||
#include "GrBackendSurface.h"
|
||||
#include "GrContext.h"
|
||||
#include "GrGLInterface.h"
|
||||
#include "GrGLTypes.h"
|
||||
#endif
|
||||
|
||||
#include "SkBlendMode.h"
|
||||
#include "SkBlurTypes.h"
|
||||
#include "SkCanvas.h"
|
||||
@ -59,6 +52,11 @@
|
||||
#include <emscripten/bind.h>
|
||||
|
||||
#if SK_SUPPORT_GPU
|
||||
#include "GrBackendSurface.h"
|
||||
#include "GrContext.h"
|
||||
#include "GrGLInterface.h"
|
||||
#include "GrGLTypes.h"
|
||||
|
||||
#include <GL/gl.h>
|
||||
#include <emscripten/html5.h>
|
||||
#endif
|
3
modules/canvaskit/fonts/README.md
Normal file
@ -0,0 +1,3 @@
|
||||
To generate the files in here:
|
||||
|
||||
python tools/embed_resources.py --name SK_EMBEDDED_FONTS --input ~/Downloads/NotoMono-Regular.ttf --output modules/canvaskit/NotoMono-Regular.ttf.cpp --align 4
|
Before Width: | Height: | Size: 151 KiB After Width: | Height: | Size: 151 KiB |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 611 KiB After Width: | Height: | Size: 611 KiB |