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

Side by Side Diff: chrome/test/data/gpu/feature_canvas2d.html

Issue 8510032: Add tests to make sure gpu blacklist actually block gpu features. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/data/gpu/feature_compositing.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>GPU Feature Testing: Canvas2D</title>
6 <script>
7 function init() {
8 var canvas = document.createElement("canvas");
9 if (!canvas)
10 return null;
11 // Make sure canvas is large enough to trigger gpu acceleration.
12 canvas.width = 500;
13 canvas.height = 500;
14 var context = null;
15 try {
16 context = canvas.getContext("2d");
17 } catch(e) {}
18 return context;
19 }
20
21 function runTest() {
22 var c2d = init();
23 if (c2d) {
24 // Initialization was triggered lazily on the first draw.
25 c2d.fillRect(0, 0, 1, 1);
26 }
27 domAutomationController.setAutomationId(1);
28 domAutomationController.send("FINISHED");
29 }
30 </script>
31 </head>
32 <body onload="runTest()">
33 Canvas2D should trigger GPU process launch if accelerated-2d-canvas is allowed.
34 </body>
35 </html>
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/data/gpu/feature_compositing.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698