Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <!-- | |
| 4 Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
| 5 Use of this source code is governed by a BSD-style license that can be | |
| 6 found in the LICENSE file. | |
| 7 --> | |
| 8 <head> | |
| 9 <meta http-equiv="Pragma" content="no-cache"> | |
| 10 <meta http-equiv="Expires" content="-1"> | |
| 11 <title>Multi-threaded Voronoi Demo</title> | |
| 12 <script type="text/javascript" src="common.js"></script> | |
| 13 <script type="text/javascript" src="example.js"></script> | |
| 14 </head> | |
| 15 <body | |
| 16 data-name="voronoi" data-width="512" data-height="512" | |
| 17 data-tools="newlib glibc pnacl linux" data-configs="Debug Release" | |
|
noelallen1
2013/05/24 18:42:50
win?
nfullagar1
2013/05/24 19:17:41
The thread_pool class currently uses semaphore.h -
| |
| 18 data-path="{tc}/{config}"> | |
| 19 <h1>Voronoi</h1> | |
| 20 <h2>Status: <code id="statusField">NO-STATUS</code></h2> | |
| 21 <div> | |
| 22 This demo renders the Voronoi diagram for a moving set of points using a | |
| 23 brute force technique. | |
| 24 <br /> | |
| 25 Number of points: | |
| 26 <input type="range" id="point_range" | |
| 27 min="1" max="1024" step="1" value="256" /> | |
| 28 <label id="point_count" >256 points</label> | |
| 29 <br /> | |
| 30 Number of threads: | |
| 31 <input type="radio" name="thread_count" id="one" value="1" | |
| 32 checked="checked" /> | |
| 33 <label for="one">1</label> | |
| 34 <input type="radio" name="thread_count" id="two" value="2" /> | |
| 35 <label for="two">2</label> | |
| 36 <input type="radio" name="thread_count" id="four" value="4" /> | |
| 37 <label for="four">4</label> | |
| 38 <input type="radio" name="thread_count" id="six" value="6" /> | |
| 39 <label for="six">6</label> | |
| 40 <input type="radio" name="thread_count" id="eight" value="8" /> | |
| 41 <label for="eight">8</label> | |
| 42 <input type="radio" name="thread_count" id="twelve" value="12" /> | |
| 43 <label for="twelve">12</label> | |
| 44 <input type="radio" name="thread_count" id="sixteen" value="16" /> | |
| 45 <label for="sixteen">16</label> | |
| 46 <input type="radio" name="thread_count" id="twentyfour" value="24" /> | |
| 47 <label for="twentyfour">24</label> | |
| 48 <input type="radio" name="thread_count" id="thirtytwo" value="32" /> | |
| 49 <label for="thirtytwo">32</label> | |
| 50 <br /> | |
| 51 <input type="checkbox" id="draw_points" checked="checked" /> | |
| 52 <label for="draw_points">Draw Points</label> | |
| 53 <input type="checkbox" id="draw_interiors" checked="checked" /> | |
| 54 <label for="draw_interiors">Draw Interiors</label> | |
| 55 <input type="submit" id="benchmark" value="Run Benchmark"/> | |
| 56 <label id="result" name="result"> </label> | |
| 57 </div> | |
| 58 <!-- The NaCl plugin will be embedded inside the element with id "listener". | |
| 59 See common.js.--> | |
| 60 <div id="listener"></div> | |
| 61 </body> | |
| 62 </html> | |
| OLD | NEW |