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

Unified Diff: LayoutTests/fast/canvas/canvas-hidpi-blurry.html

Issue 799103002: Fix display list canvas not rendering correctly on high dpi displays (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update 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
Index: LayoutTests/fast/canvas/canvas-hidpi-blurry.html
diff --git a/LayoutTests/fast/canvas/canvas-hidpi-blurry.html b/LayoutTests/fast/canvas/canvas-hidpi-blurry.html
new file mode 100644
index 0000000000000000000000000000000000000000..0e15528daa6b09bdb35144d9f8c2a9342597471a
--- /dev/null
+++ b/LayoutTests/fast/canvas/canvas-hidpi-blurry.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Test to verify that canvas contents are blurred by default with hidpi</title>
+</head>
+<body>
+<script>
+ function runTest() {
+ if (!window.testRunner) {
+ var msg = document.getElementById("message");
+ msg.innerHTML = "ERROR: This test requires the testRunner object.";
+ return;
+ }
+
+ testRunner.dumpAsTextWithPixelResults();
+
+ testRunner.waitUntilDone();
+ testRunner.setBackingScaleFactor(2, function () {
+ var ctx1 = document.getElementById("c1").getContext("2d");
+ ctx1.fillRect(1, 1, 8, 8);
+ testRunner.notifyDone();
+ });
+ }
+
+ window.onload = runTest;
+</script>
+<div id="message">Below this text, there should a black square with blurry edges.</div> <br>
+<canvas id="c1" width="10" height="10"></canvas>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698