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

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

Issue 450813002: Add some performance testing for paint invalidations (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed Elliott's review comments. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « PerformanceTests/PaintInvalidation/shift-rectangle-left-invalidate.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: PerformanceTests/PaintInvalidation/shift-rectangle-translateX-invalidate.html
diff --git a/PerformanceTests/PaintInvalidation/shift-rectangle-translateX-invalidate.html b/PerformanceTests/PaintInvalidation/shift-rectangle-translateX-invalidate.html
new file mode 100644
index 0000000000000000000000000000000000000000..1598c8e4f3e5ccf628a81487d7d82696a20260a9
--- /dev/null
+++ b/PerformanceTests/PaintInvalidation/shift-rectangle-translateX-invalidate.html
@@ -0,0 +1,44 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+.test {
+ height: 100px;
+ width: 100px;
+ background-color: navy;
+}
+
+.shifted {
+ transform: translateX(100px);
+}
+</style>
+<script src="../resources/runner.js"></script>
+</head>
+<body>
+ <div class="test"></div>
+ <div class="test shifted"></div>
+ <div class="test"></div>
+ <div class="test shifted"></div>
+ <div class="test"></div>
+ <div class="test shifted"></div>
+ <div class="test"></div>
+ <div class="test shifted"></div>
+ <div class="test"></div>
+ <div class="test shifted"></div>
+ <script>
+ if (!window.internals) {
+ alert("This test has to be run under DumpRenderTree");
+ } else {
+ var elements = document.getElementsByClassName("test");
+ internals.forceCompositingUpdate(document);
+
+ PerfTestRunner.measureRunsPerSecond({run: function() {
+ for (var i = 0; i < elements.length; ++i)
+ elements[i].classList.toggle("translated");
+
+ internals.forceCompositingUpdate(document);
+ }});
+ }
+ </script>
+</body>
+</html>
« 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