2019-03-05 15:45:40 +00:00
|
|
|
var DebuggerView = {
|
|
|
|
MakeSWCanvasSurface: function() {},
|
|
|
|
_getRasterDirectSurface: function() {},
|
|
|
|
_malloc: function() {},
|
|
|
|
_free: function() {},
|
|
|
|
onRuntimeInitialized: function() {},
|
2019-04-08 17:16:26 +00:00
|
|
|
SkpFilePlayer: function() {},
|
2019-04-09 16:07:18 +00:00
|
|
|
MakeWebGLCanvasSurface: function() {},
|
|
|
|
MakeGrContext: function() {},
|
|
|
|
MakeOnScreenGLSurface: function() {},
|
2019-04-09 20:57:54 +00:00
|
|
|
MakeCanvasSurface: function() {},
|
2020-11-17 17:25:02 +00:00
|
|
|
MinVersion: function() {},
|
2019-03-05 15:45:40 +00:00
|
|
|
|
|
|
|
ColorType: {
|
|
|
|
RGBA_8888: {},
|
|
|
|
},
|
|
|
|
|
|
|
|
AlphaType: {
|
|
|
|
Unpremul: {},
|
|
|
|
},
|
|
|
|
|
2019-04-09 20:57:54 +00:00
|
|
|
TRANSPARENT: {},
|
|
|
|
|
2019-03-05 15:45:40 +00:00
|
|
|
SkSurface: {
|
|
|
|
// public API (from C++ bindings)
|
|
|
|
/** @return {DebuggerView.SkCanvas} */
|
|
|
|
getCanvas: function() {},
|
2020-11-17 17:25:02 +00:00
|
|
|
clear: function() {},
|
2019-03-05 15:45:40 +00:00
|
|
|
|
|
|
|
// private API
|
|
|
|
_flush: function() {},
|
|
|
|
delete: function() {},
|
|
|
|
},
|
2019-04-09 16:07:18 +00:00
|
|
|
|
|
|
|
SkpDebugPlayer: {
|
|
|
|
SkpDebugPlayer: function() {},
|
2020-11-17 17:25:02 +00:00
|
|
|
changeFrame: function() {},
|
|
|
|
deleteCommand: function() {},
|
|
|
|
draw: function() {},
|
2019-04-09 16:07:18 +00:00
|
|
|
drawTo: function() {},
|
2020-11-17 17:25:02 +00:00
|
|
|
findCommandByPixel: function() {},
|
2019-04-09 16:07:18 +00:00
|
|
|
getBounds: function() {},
|
2020-11-17 17:25:02 +00:00
|
|
|
getFrameCount: function() {},
|
|
|
|
getImageResource: function() {},
|
|
|
|
getImageCount: function() {},
|
|
|
|
getImageInfo: function() {},
|
|
|
|
getLayerSummariesJs: function() {},
|
2019-04-09 16:07:18 +00:00
|
|
|
getSize: function() {},
|
2020-11-17 17:25:02 +00:00
|
|
|
imageUseInfoForFrameJs: function() {},
|
2019-04-09 16:07:18 +00:00
|
|
|
jsonCommandList: function() {},
|
|
|
|
lastCommandInfo: function() {},
|
2020-11-17 17:25:02 +00:00
|
|
|
loadSkp: function() {},
|
|
|
|
setClipVizColor: function() {},
|
|
|
|
setCommandVisibility: function() {},
|
|
|
|
setGpuOpBounds: function() {},
|
|
|
|
setInspectedLayer: function() {},
|
|
|
|
setOriginVisible: function() {},
|
|
|
|
setOverdrawVis: function() {},
|
|
|
|
setAndroidClipViz: function() {},
|
2019-04-09 16:07:18 +00:00
|
|
|
},
|
2019-10-10 11:35:05 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @type {Uint8Array}
|
|
|
|
*/
|
|
|
|
HEAPU8: {},
|
2019-03-05 15:45:40 +00:00
|
|
|
};
|
|
|
|
|
2019-04-09 16:07:18 +00:00
|
|
|
// 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.
|
|
|
|
|
2019-03-05 15:45:40 +00:00
|
|
|
DebuggerView.SkSurface.prototype.flush = function() {};
|
|
|
|
DebuggerView.SkSurface.prototype.dispose = function() {};
|