Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: third_party/webgl/conformance-suites/1.0.0/extra/webgl-info.html

Issue 9360034: Remove everthing except conformance tests in the deps/third_party/webgl (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!--
2 Copyright (c) 2009 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file.
5 -->
6 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
7 "http://www.w3.org/TR/html4/loose.dtd">
8 <html>
9 <head>
10 <title>WebGL Information</title>
11 <script src="../../demos/common/webgl-utils.js"> </script>
12 <script>
13 window.onload = main;
14
15 function createCell(txt) {
16 var str = txt.toString();
17 if (typeof txt != 'string') {
18 if (txt.length !== undefined) {
19 str = "";
20 for (var ii = 0; ii < txt.length; ++ii) {
21 str += (ii == 0 ? "" : ", ") + txt[ii];
22 }
23 }
24 }
25 var t = document.createTextNode(str);
26 var d = document.createElement("div");
27 var td = document.createElement("td");
28 d.appendChild(t);
29 td.appendChild(d);
30 return td;
31 }
32
33 function main() {
34 var canvas = document.getElementById("example");
35 var gl = WebGLUtils.setupWebGL(canvas);
36 if (!gl) {
37 return;
38 }
39
40 var pnames = [
41 'VERSION',
42 'VENDOR',
43 'RENDERER',
44 'MAX_COMBINED_TEXTURE_IMAGE_UNITS',
45 'MAX_CUBE_MAP_TEXTURE_SIZE',
46 'MAX_FRAGMENT_UNIFORM_VECTORS',
47 'MAX_RENDERBUFFER_SIZE',
48 'MAX_TEXTURE_IMAGE_UNITS',
49 'MAX_TEXTURE_SIZE',
50 'MAX_VARYING_VECTORS',
51 'MAX_VERTEX_ATTRIBS',
52 'MAX_VERTEX_TEXTURE_IMAGE_UNITS',
53 'MAX_VERTEX_UNIFORM_VECTORS',
54 'MAX_VIEWPORT_DIMS'
55 ];
56 var table = document.createElement("table");
57 var tb = document.createElement("tbody");
58 for (var ii = 0; ii < pnames.length; ++ii) {
59 var pname = pnames[ii];
60 var value = gl.getParameter(gl[pname]);
61 var tr = document.createElement("tr");
62 var td1 = createCell(pname);
63 var td2 = createCell(value);
64 tr.appendChild(td1);
65 tr.appendChild(td2);
66 tb.appendChild(tr);
67 }
68 table.appendChild(tb);
69 document.getElementById("info").appendChild(table);
70 }
71 </script>
72 </head>
73 <body>
74 <h1>WebGL Info</h1>
75 <div id="info"></div>
76 <canvas id="example" width="256" height="16" style="width: 256px; height: 48px;" ></canvas>
77 </body>
78 </html>
79
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698