d6b32ed39d
This adds readPixel and a partial stub of window.createImageData Change-Id: Iee992312b9331b71852fe2198f844a7e4ae9e963 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/211344 Reviewed-by: Mike Reed <reed@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 = 8005
|
|
|
|
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()
|