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

Unified Diff: LayoutTests/fast/canvas/canvas-from-image.html

Issue 765893003: Test drawing an image to a canvas, then upscaling. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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-from-image-expected.png » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/canvas/canvas-from-image.html
diff --git a/LayoutTests/fast/canvas/canvas-from-image.html b/LayoutTests/fast/canvas/canvas-from-image.html
new file mode 100644
index 0000000000000000000000000000000000000000..ce01729a5b1a5393051d92707b51b6b48d3d23aa
--- /dev/null
+++ b/LayoutTests/fast/canvas/canvas-from-image.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<style>
+ img {
+ display: none;
+ }
+ canvas {
+ width: 520px;
+ height: 520px;
+ }
+</style>
+<body>
+ <img src="resources/html5.png">
+ <!-- Test that gpu accelerated canvases work with pixelated. -->
+ <!-- Canvases should be overlaid at an offset. Only the middle one should be blurred. -->
+ <canvas class="canvas0" width="260" height="260"></canvas>
+</body>
+<script>
+ // Ignore the render tree.
+ if (window.testRunner)
+ window.testRunner.dumpAsTextWithPixelResults();
+
+ function draw() {
+ var ctx = document.getElementsByTagName("canvas")[0].getContext("2d")
+ ctx.drawImage(document.getElementsByTagName("img")[0], 10, 10);
+ }
+ window.onload = draw;
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/canvas/canvas-from-image-expected.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698