26f410d8cf
Bug: skia: Change-Id: I39de7abdc54872ae983bbb8a7e88a8b9d93a952b Reviewed-on: https://skia-review.googlesource.com/c/skia/+/206919 Reviewed-by: Kevin Lubick <kjlubick@google.com> Commit-Queue: Nathaniel Nifong <nifong@google.com>
56 lines
1.4 KiB
JavaScript
56 lines
1.4 KiB
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() {},
|
|
SkpFilePlayer: function() {},
|
|
MakeWebGLCanvasSurface: function() {},
|
|
MakeGrContext: function() {},
|
|
MakeOnScreenGLSurface: function() {},
|
|
MakeCanvasSurface: function() {},
|
|
|
|
ColorType: {
|
|
RGBA_8888: {},
|
|
},
|
|
|
|
AlphaType: {
|
|
Unpremul: {},
|
|
},
|
|
|
|
TRANSPARENT: {},
|
|
|
|
SkSurface: {
|
|
// public API (from C++ bindings)
|
|
/** @return {DebuggerView.SkCanvas} */
|
|
getCanvas: function() {},
|
|
|
|
// private API
|
|
_flush: function() {},
|
|
delete: function() {},
|
|
},
|
|
|
|
SkpDebugPlayer: {
|
|
SkpDebugPlayer: function() {},
|
|
loadSkp: function() {},
|
|
drawTo: function() {},
|
|
getBounds: function() {},
|
|
setOverdrawVis: function() {},
|
|
setGpuOpBounds: function() {},
|
|
setClipVizColor: function() {},
|
|
getSize: function() {},
|
|
deleteCommand: function() {},
|
|
setCommandVisibility: function() {},
|
|
jsonCommandList: function() {},
|
|
lastCommandInfo: function() {},
|
|
},
|
|
};
|
|
|
|
// Public API things that are newly declared in the JS should go here.
|
|
// It's not enough to declare them above, because closure can still erase them
|
|
// unless they go on the prototype.
|
|
|
|
DebuggerView.SkSurface.prototype.flush = function() {};
|
|
DebuggerView.SkSurface.prototype.dispose = function() {}; |