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

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: corrections 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 | « LayoutTests/TestExpectations ('k') | Source/platform/graphics/GraphicsContext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..1f508a7da7c951fba3bae5cbee24e1ea86806e87
--- /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>
+<!-- There should a black square with blurry edges.-->
+<canvas id="c1" width="10" height="10"></canvas>
+</body>
+</html>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | Source/platform/graphics/GraphicsContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698