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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « LayoutTests/TestExpectations ('k') | Source/platform/graphics/GraphicsContext.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Test to verify that canvas contents are blurred by default with h idpi</title>
5 </head>
6 <body>
7 <script>
8 function runTest() {
9 if (!window.testRunner) {
10 var msg = document.getElementById("message");
11 msg.innerHTML = "ERROR: This test requires the testRunner object.";
12 return;
13 }
14
15 testRunner.dumpAsTextWithPixelResults();
16
17 testRunner.waitUntilDone();
18 testRunner.setBackingScaleFactor(2, function () {
19 var ctx1 = document.getElementById("c1").getContext("2d");
20 ctx1.fillRect(1, 1, 8, 8);
21 testRunner.notifyDone();
22 });
23 }
24
25 window.onload = runTest;
26 </script>
27 <!-- There should a black square with blurry edges.-->
28 <canvas id="c1" width="10" height="10"></canvas>
29 </body>
30 </html>
OLDNEW
« 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