1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22

content / test / data / gpu / webgl-domain-blocking-page2.html [blame]

<html>
<head>
<script type="text/javascript">
var gl;
var gotGL = false;
var initFinished = false;

function init()
{
  var canvas = document.getElementById('c');
  gl = canvas.getContext('webgl');
  if (gl) {
    gotGL = true;
  }
  initFinished = true;
}
</script>
</head>
<body bgcolor="lightgray" onload="init()">
<canvas id="c" width="400" height="300" style="border-width: 1px; border-style: solid;"></canvas>
</body>
</html>