| Nathaniel Nifong | e5d3254 | 2020-03-26 09:27:48 -0400 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2019 Google LLC |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
| 6 | */ |
| 7 | |
| 8 | #ifndef WasmCommon_DEFINED |
| 9 | #define WasmCommon_DEFINED |
| 10 | |
| 11 | #include <emscripten.h> |
| 12 | #include <emscripten/bind.h> |
| 13 | #include "include/core/SkColor.h" |
| 14 | |
| 15 | using namespace emscripten; |
| 16 | |
| 17 | // Self-documenting types |
| 18 | using JSArray = emscripten::val; |
| 19 | using JSObject = emscripten::val; |
| 20 | using JSString = emscripten::val; |
| 21 | using SkPathOrNull = emscripten::val; |
| 22 | using Uint8Array = emscripten::val; |
| 23 | using Float32Array = emscripten::val; |
| 24 | |
| Nathaniel Nifong | e5d3254 | 2020-03-26 09:27:48 -0400 | [diff] [blame] | 25 | #endif |