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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-composite-repaint-by-all-imagesource.html

Issue 2157243002: Add in row offset if self-composited. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: none Created 4 years, 5 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: third_party/WebKit/LayoutTests/fast/canvas/canvas-composite-repaint-by-all-imagesource.html
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/canvas-composite-repaint-by-all-imagesource.html b/third_party/WebKit/LayoutTests/fast/canvas/canvas-composite-repaint-by-all-imagesource.html
index abefc21aba911ecbdad3b67fba44955cb2b955c6..9a53b33ca6894de7779c7ee0e4ac91e38bc478ca 100644
--- a/third_party/WebKit/LayoutTests/fast/canvas/canvas-composite-repaint-by-all-imagesource.html
+++ b/third_party/WebKit/LayoutTests/fast/canvas/canvas-composite-repaint-by-all-imagesource.html
@@ -127,26 +127,30 @@
context.drawImage(document.getElementById('video'), 10, 10);
}
+ function repaintTestAt(i, j) {
wkorman 2016/07/19 21:49:21 This looks like it is from a different change?
chrishtr 2016/07/19 21:55:06 Removed. Was for debugging.
+ var context = getContext(i, j);
+ context.globalCompositeOperation = compositeTypes[i];
+ switch (testNames[j]) {
+ case 'solid color':
+ drawRect(context);
+ break;
+ case 'image':
+ drawImage(context);
+ break;
+ case 'canvas':
+ drawCanvas(context);
+ break;
+ case 'video':
+ drawVideo(context);
+ }
+ context.restore();
+ }
+
// callback from text-based-repaint.js
function repaintTest() {
for (var i = 0; i < compositeTypes.length; i++) {
for (var j = 0; j < testNames.length; j++) {
- var context = getContext(i, j);
- context.globalCompositeOperation = compositeTypes[i];
- switch (testNames[j]) {
- case 'solid color':
- drawRect(context);
- break;
- case 'image':
- drawImage(context);
- break;
- case 'canvas':
- drawCanvas(context);
- break;
- case 'video':
- drawVideo(context);
- }
- context.restore();
+ repaintTestAt(i, j);
}
}
// Because canvas invalidations are processed at the end of the current task,
@@ -176,3 +180,8 @@
</script>
</body>
</html>
+<script>
+onload = function() {
+ setTimeout(() => repaintTestAt(10, 3), 3000);
+}
+</script>

Powered by Google App Engine
This is Rietveld 408576698