ee91c07a76
Also re-works colors in the JS part to be unsigned, so there's less chance for oopsies when passing them to the C++ side. Change-Id: I3f56d22e873e1407c402606444c50b76dd34ffd4 Bug: skia: Reviewed-on: https://skia-review.googlesource.com/c/skia/+/204543 Reviewed-by: Mike Reed <reed@google.com>
24 lines
493 B
C++
24 lines
493 B
C++
/*
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#ifndef WasmAliases_DEFINED
|
|
#define WasmAliases_DEFINED
|
|
|
|
#include <emscripten.h>
|
|
#include <emscripten/bind.h>
|
|
|
|
using namespace emscripten;
|
|
|
|
// Self-documenting types
|
|
using JSArray = emscripten::val;
|
|
using JSObject = emscripten::val;
|
|
using JSString = emscripten::val;
|
|
using SkPathOrNull = emscripten::val;
|
|
using Uint8Array = emscripten::val;
|
|
|
|
#endif
|