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

Unified Diff: LayoutTests/fast/canvas/canvas-state-persistence-no-dirty.html

Issue 588403003: Fix a rendering bug when frames have no dirty rect on display list mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rename Created 6 years, 3 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 | LayoutTests/fast/canvas/canvas-state-persistence-no-dirty-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/canvas/canvas-state-persistence-no-dirty.html
diff --git a/LayoutTests/fast/canvas/canvas-state-persistence-no-dirty.html b/LayoutTests/fast/canvas/canvas-state-persistence-no-dirty.html
new file mode 100644
index 0000000000000000000000000000000000000000..26b39cc8265faeaf82d90cd035c5f94d35962306
--- /dev/null
+++ b/LayoutTests/fast/canvas/canvas-state-persistence-no-dirty.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<canvas></canvas>
+<script>
+
+if (window.testRunner)
+ testRunner.waitUntilDone();
+
+var canvas = document.querySelector("canvas");
+var context = canvas.getContext("2d");
+
+// first frame
+
+requestAnimationFrame(function() {
+
+ // second frame which doesn't have a dirty
+ context.scale(2, 1);
+
+ requestAnimationFrame(function() {
+
+ // third frame which has a dirty
+ context.scale(2, 1);
+ context.fillRect(0, 0, 10, 10);
+
+ if (window.testRunner)
+ testRunner.notifyDone();
+
+ });
+});
+
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/canvas/canvas-state-persistence-no-dirty-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698