skia2/experimental/wasm-skp-debugger/externs.js
Nathaniel Nifong ad5f6cdb7e Initial wasm debugger
Bug: skia:
Change-Id: I4d38e60f03bb315dee9c9db655ce168e9b3b475f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/195580
Commit-Queue: Nathaniel Nifong <nifong@google.com>
Reviewed-by: Kevin Lubick <kjlubick@google.com>
2019-03-05 16:10:15 +00:00

31 lines
652 B
JavaScript

// TODO(nifong): Complete this before turning on clojure optimizations in compile.sh
var DebuggerView = {
MakeSWCanvasSurface: function() {},
_getRasterDirectSurface: function() {},
_malloc: function() {},
_free: function() {},
onRuntimeInitialized: function() {},
ColorType: {
RGBA_8888: {},
},
AlphaType: {
Unpremul: {},
},
SkSurface: {
// public API (from C++ bindings)
/** @return {DebuggerView.SkCanvas} */
getCanvas: function() {},
// private API
_flush: function() {},
delete: function() {},
},
};
DebuggerView.SkSurface.prototype.flush = function() {};
DebuggerView.SkSurface.prototype.dispose = function() {};