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

Unified Diff: PerformanceTests/PaintInvalidation/grow-shrink-rectangle-invalidate-overlapping.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 | « no previous file | PerformanceTests/PaintInvalidation/shift-rectangle-left-invalidate.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: PerformanceTests/PaintInvalidation/grow-shrink-rectangle-invalidate-overlapping.html
diff --git a/PerformanceTests/PaintInvalidation/grow-shrink-rectangle-invalidate-overlapping.html b/PerformanceTests/PaintInvalidation/grow-shrink-rectangle-invalidate-overlapping.html
new file mode 100644
index 0000000000000000000000000000000000000000..30dae0cd8011289ed0d577604a3187b38fa1de83
--- /dev/null
+++ b/PerformanceTests/PaintInvalidation/grow-shrink-rectangle-invalidate-overlapping.html
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+.test {
+ position: absolute;
+ height: 100px;
+ width: 50px;
+ background-color: navy;
+}
+
+.grown {
+ width: 100px;
+}
+</style>
+<script src="../resources/runner.js"></script>
+</head>
+<body>
+ <div class="test"></div>
+ <div class="test grown"></div>
+ <div class="test"></div>
+ <div class="test grown"></div>
+ <div class="test"></div>
+ <div class="test grown"></div>
+ <div class="test"></div>
+ <div class="test grown"></div>
+ <div class="test"></div>
+ <div class="test grown"></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("grown");
+
+ internals.forceCompositingUpdate(document);
+ }});
+ }
+ </script>
+</body>
+</html>
« no previous file with comments | « no previous file | PerformanceTests/PaintInvalidation/shift-rectangle-left-invalidate.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698