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

Side by Side Diff: PerformanceTests/Animation/mix-blend-mode-animation-hue.html

Issue 643693006: Add performance tests for accelerated elements with CSS Blending. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Benchmark - CSS Blending and CSS Animation</title>
5 <style>
6 #backdrop {
7 float: left;
8 width: 400px;
9 height: 400px;
10 isolation: isolate;
11 background-image: linear-gradient(to bottom,
12 rgba(255, 255, 0, 0.9),
13 rgba(255, 0, 0, 0.9),
14 rgba(0, 255, 0, 0.9),
15 rgba(0, 0, 255, 0.9),
16 rgba(0, 0, 0, 0.9));
17 position: absolute;
18 top: 50px;
19 left: 100px;
20 }
21 #backdrop div {
22 width: 5%;
23 height: 5%;
24 background-color: rgba(200, 100, 100, 0.7);
25 float: left;
26 will-change: transform;
27 mix-blend-mode: hue;
28 animation: rotate 3s infinite linear;
29 }
30 @keyframes rotate {
31 to {transform: rotateZ(360deg);}
32 }
33 }
34 </style>
35 <script src="../resources/runner.js"></script>
36 <script src="resources/framerate.js"></script>
37 <script>
38 window.onload = function () {
39 var backdrop = document.getElementById("backdrop");
40 for (var i = 0; i < 400; i++) {
41 var div = document.createElement("div");
42 backdrop.appendChild(div);
43 }
44 PerfTestRunner.prepareToMeasureValuesAsync({
45 description: "Measure performance of CSS Animation on elements having mi x-blend-mode: hue (a non-separable blend mode).",
46 done: onCompletedRun,
47 unit: 'fps'
48 });
49 startTrackingFrameRate();
50 }
51
52 function onCompletedRun() {
53 stopTrackingFrameRate();
54 }
55 </script>
56 </head>
57 <body>
58 <pre id="log"></pre>
59 <div id="backdrop"></div>
60 </body>
61 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698