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

Unified Diff: PerformanceTests/Blending/mix-blend-mode-propagating-isolation.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, 2 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 side-by-side diff with in-line comments
Download patch
Index: PerformanceTests/Blending/mix-blend-mode-propagating-isolation.html
diff --git a/PerformanceTests/Blending/mix-blend-mode-propagating-isolation.html b/PerformanceTests/Blending/mix-blend-mode-propagating-isolation.html
deleted file mode 100644
index b0f4bdbb3d0aedb9f10286d54e5bbcc03f39ac7e..0000000000000000000000000000000000000000
--- a/PerformanceTests/Blending/mix-blend-mode-propagating-isolation.html
+++ /dev/null
@@ -1,57 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <style>
- .box {
- width: 100px;
- height: 100px;
- position: relative;
- z-index: 1;
- top: 10px;
- background-color: red;
- border: 1px black solid;
- }
- .blending {
- mix-blend-mode: difference;
- }
- #container {
- position: absolute;
- left: 0px;
- z-index: 0;
- }
- </style>
- <script src="../resources/runner.js"></script>
- <script src="resources/framerate.js"></script>
- <script>
- window.onload = function () {
- PerfTestRunner.prepareToMeasureValuesAsync({done: onCompletedRun, unit: 'fps'});
-
- // The leaf element has blending
- var lastElement = document.createElement("div");
- lastElement.setAttribute("class", "blending box");
-
- for (var i = 0; i < 100; i++) {
- var el = document.createElement("div");
- el.setAttribute("class", "box");
- el.appendChild(lastElement);
- lastElement = el;
- }
- var container = document.getElementById("container");
- container.appendChild(lastElement);
- startTrackingFrameRate({run: softwareAnimationStep});
- }
-
- function onCompletedRun() {
- stopTrackingFrameRate();
- }
- function softwareAnimationStep() {
- var leftVal = parseInt(container.style.left) || 0;
- container.style.left = (leftVal + 1) + "px";
- }
- </script>
-</head>
-<body>
- <pre id="log"> </pre>
- <div id="container"> </div>
-</body>
-</html>
« no previous file with comments | « PerformanceTests/Animation/mix-blend-mode-propagating-isolation.html ('k') | PerformanceTests/Blending/resources/framerate.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698