Home | History | Annotate | Download | only in canvaskit
      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 WasmAliases_DEFINED
      9 #define WasmAliases_DEFINED
     10 
     11 #include <emscripten.h>
     12 #include <emscripten/bind.h>
     13 
     14 using namespace emscripten;
     15 
     16 // Self-documenting types
     17 using JSArray = emscripten::val;
     18 using JSColor = int32_t;
     19 using JSObject = emscripten::val;
     20 using JSString = emscripten::val;
     21 using SkPathOrNull = emscripten::val;
     22 using Uint8Array = emscripten::val;
     23 
     24 #endif
     25