1// TODO(nifong): Complete this before turning on clojure optimizations in compile.sh 2 3var DebuggerView = { 4 MakeSWCanvasSurface: function() {}, 5 _getRasterDirectSurface: function() {}, 6 _malloc: function() {}, 7 _free: function() {}, 8 onRuntimeInitialized: function() {}, 9 SkpFilePlayer: function() {}, 10 MakeWebGLCanvasSurface: function() {}, 11 MakeGrContext: function() {}, 12 MakeOnScreenGLSurface: function() {}, 13 MakeCanvasSurface: function() {}, 14 15 ColorType: { 16 RGBA_8888: {}, 17 }, 18 19 AlphaType: { 20 Unpremul: {}, 21 }, 22 23 TRANSPARENT: {}, 24 25 SkSurface: { 26 // public API (from C++ bindings) 27 /** @return {DebuggerView.SkCanvas} */ 28 getCanvas: function() {}, 29 30 // private API 31 _flush: function() {}, 32 delete: function() {}, 33 }, 34 35 SkpDebugPlayer: { 36 SkpDebugPlayer: function() {}, 37 loadSkp: function() {}, 38 drawTo: function() {}, 39 getBounds: function() {}, 40 setOverdrawVis: function() {}, 41 setGpuOpBounds: function() {}, 42 setClipVizColor: function() {}, 43 getSize: function() {}, 44 deleteCommand: function() {}, 45 setCommandVisibility: function() {}, 46 jsonCommandList: function() {}, 47 lastCommandInfo: function() {}, 48 }, 49}; 50 51// Public API things that are newly declared in the JS should go here. 52// It's not enough to declare them above, because closure can still erase them 53// unless they go on the prototype. 54 55DebuggerView.SkSurface.prototype.flush = function() {}; 56DebuggerView.SkSurface.prototype.dispose = function() {};