1var DebuggerView = { 2 MakeSWCanvasSurface: function() {}, 3 _getRasterDirectSurface: function() {}, 4 _malloc: function() {}, 5 _free: function() {}, 6 onRuntimeInitialized: function() {}, 7 SkpFilePlayer: function() {}, 8 MakeWebGLCanvasSurface: function() {}, 9 MakeGrContext: function() {}, 10 MakeOnScreenGLSurface: function() {}, 11 MakeCanvasSurface: function() {}, 12 MinVersion: function() {}, 13 14 ColorType: { 15 RGBA_8888: {}, 16 }, 17 18 AlphaType: { 19 Unpremul: {}, 20 }, 21 22 TRANSPARENT: {}, 23 24 SkSurface: { 25 // public API (from C++ bindings) 26 /** @return {DebuggerView.SkCanvas} */ 27 getCanvas: function() {}, 28 clear: function() {}, 29 30 // private API 31 _flush: function() {}, 32 delete: function() {}, 33 }, 34 35 SkpDebugPlayer: { 36 SkpDebugPlayer: function() {}, 37 changeFrame: function() {}, 38 deleteCommand: function() {}, 39 draw: function() {}, 40 drawTo: function() {}, 41 findCommandByPixel: function() {}, 42 getBounds: function() {}, 43 getFrameCount: function() {}, 44 getImageResource: function() {}, 45 getImageCount: function() {}, 46 getImageInfo: function() {}, 47 getLayerSummariesJs: function() {}, 48 getSize: function() {}, 49 imageUseInfoForFrameJs: function() {}, 50 jsonCommandList: function() {}, 51 lastCommandInfo: function() {}, 52 loadSkp: function() {}, 53 setClipVizColor: function() {}, 54 setCommandVisibility: function() {}, 55 setGpuOpBounds: function() {}, 56 setInspectedLayer: function() {}, 57 setOriginVisible: function() {}, 58 setOverdrawVis: function() {}, 59 setAndroidClipViz: function() {}, 60 }, 61 62 /** 63 * @type {Uint8Array} 64 */ 65 HEAPU8: {}, 66}; 67 68// Public API things that are newly declared in the JS should go here. 69// It's not enough to declare them above, because closure can still erase them 70// unless they go on the prototype. 71 72DebuggerView.SkSurface.prototype.flush = function() {}; 73DebuggerView.SkSurface.prototype.dispose = function() {};