217056c048
drawText is having issues in a release build. Skottie sometimes asserts in debug mode. This possibly has something to do with memory alignment - like https://skia-review.googlesource.com/c/skia/+/155980 helped fix. Patchset 9 shows off integrating Skia drawing to an HTML canvas using Ganesh. To see it locally, set up https://kripken.github.io/emscripten-site/docs/getting_started/downloads.html and then set $EMSDK to be that directory. Then run make clean make local-example and navigate to http://localhost:8000/skia-wasm/example.html Patchset 20 shows off Skottie animating directly to a Canvas. Docs-Preview: https://skia.org/?cl=153882 Bug: skia: Change-Id: I2ad2f4ffac00925ee901982ccbaeb7aa63b1ea23 Reviewed-on: https://skia-review.googlesource.com/153882 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Kevin Lubick <kjlubick@google.com>
21 lines
508 B
Python
21 lines
508 B
Python
# Copyright 2018 Google LLC
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
import SimpleHTTPServer
|
|
import SocketServer
|
|
|
|
PORT = 8000
|
|
|
|
class Handler(SimpleHTTPServer.SimpleHTTPRequestHandler):
|
|
pass
|
|
|
|
Handler.extensions_map['.js'] = 'application/javascript'
|
|
# Without the correct MIME type, async compilation doesn't work
|
|
Handler.extensions_map['.wasm'] = 'application/wasm'
|
|
|
|
httpd = SocketServer.TCPServer(("", PORT), Handler)
|
|
|
|
httpd.serve_forever()
|