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

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

Issue 239083006: Change ACCELERATED_COMPOSITING blacklist to GPU_COMPOSITING. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: blacklistaccel: tests Created 6 years, 8 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 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>GPU Feature Testing: Accelerated Compositing</title>
6 <style>
7 body {
8 -webkit-transform: translateZ(0);
9 }
10 </style>
11 <script>
12 var frameCount = 0;
13 // 3 is not enough for threaded compositing, using 6 to avoid racing.
14 var totalRafs = 6;
15
16 function runTest() {
17 window.webkitRequestAnimationFrame(draw);
18 }
19 function draw() {
20 frameCount++;
21 var table = document.getElementById("table");
22 table.style.backgroundColor = (frameCount & 1) ? 'red' : 'black';
23 if (frameCount == totalRafs) {
24 domAutomationController.setAutomationId(1);
25 domAutomationController.send("FINISHED");
26 } else {
27 window.webkitRequestAnimationFrame(draw);
28 }
29 }
30 </script>
31 </head>
32 <body onload="runTest()">
33 This page should trigger accelerated-compositing, i.e., gpu process should
34 launch, if accelerated-compositing is allowed.
35 <table id="table" width="10" height="10"><tr/></table>
36 </body>
37 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698