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

Side by Side Diff: PerformanceTests/PaintInvalidation/shift-rectangle-translateX-invalidate.html

Issue 459663002: Revert of Add some performance testing for paint invalidations (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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
« no previous file with comments | « PerformanceTests/PaintInvalidation/shift-rectangle-left-invalidate.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 .test {
6 height: 100px;
7 width: 100px;
8 background-color: navy;
9 }
10
11 .shifted {
12 transform: translateX(100px);
13 }
14 </style>
15 <script src="../resources/runner.js"></script>
16 </head>
17 <body>
18 <div class="test"></div>
19 <div class="test shifted"></div>
20 <div class="test"></div>
21 <div class="test shifted"></div>
22 <div class="test"></div>
23 <div class="test shifted"></div>
24 <div class="test"></div>
25 <div class="test shifted"></div>
26 <div class="test"></div>
27 <div class="test shifted"></div>
28 <script>
29 if (!window.internals) {
30 alert("This test has to be run under DumpRenderTree");
31 } else {
32 var elements = document.getElementsByClassName("test");
33 internals.forceCompositingUpdate(document);
34
35 PerfTestRunner.measureRunsPerSecond({run: function() {
36 for (var i = 0; i < elements.length; ++i)
37 elements[i].classList.toggle("translated");
38
39 internals.forceCompositingUpdate(document);
40 }});
41 }
42 </script>
43 </body>
44 </html>
OLDNEW
« no previous file with comments | « PerformanceTests/PaintInvalidation/shift-rectangle-left-invalidate.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698