ad5f6cdb7e
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>
33 lines
718 B
HTML
33 lines
718 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Debugger Demo</title>
|
|
<script src="bin/debugger.js"></script>
|
|
<script>
|
|
var index = 0;
|
|
|
|
DebuggerInit({
|
|
locateFile: (file) => '/node_modules/debugger/bin/'+file,
|
|
}).ready().then((Debugger) => {
|
|
var surface = Debugger.MakeSWCanvasSurface('debugger_view');
|
|
var player = new Debugger.SkpDebugPlayer();
|
|
player.loadSkp();
|
|
|
|
|
|
var intervalID = setInterval(function(){
|
|
if (index < 789){
|
|
player.drawTo(surface, index);
|
|
surface.flush();
|
|
index++;
|
|
console.log("index = "+index);
|
|
}
|
|
}, 50);
|
|
});
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<canvas id=debugger_view width=720 height=1280></canvas>
|
|
</body>
|
|
</html>
|