Chromium Code Reviews| Index: content/test/data/gpu/pixel_offscreenCanvas_2d_commit_worker.html |
| diff --git a/content/test/data/gpu/pixel_offscreenCanvas_2d_commit_worker.html b/content/test/data/gpu/pixel_offscreenCanvas_2d_commit_worker.html |
| index 410a78accf686fa6e94c110bbecca65da4899a2f..576422bef2fb170111000175fae88b6b8011345b 100644 |
| --- a/content/test/data/gpu/pixel_offscreenCanvas_2d_commit_worker.html |
| +++ b/content/test/data/gpu/pixel_offscreenCanvas_2d_commit_worker.html |
| @@ -8,7 +8,7 @@ that the baseline images are regenerated on the next run. |
| <html> |
| <head> |
| -<title>OffscreenCanvas 2d commit flow on worker thread: blue square on white background.</title> |
| +<title>OffscreenCanvas 2d commit flow on worker thread: Four-color square on white background.</title> |
| <style type="text/css"> |
| .nomargin { |
| margin: 0px auto; |
| @@ -18,8 +18,14 @@ that the baseline images are regenerated on the next run. |
| self.onmessage = function(e) { |
| var transferredCanvas = e.data; |
| var offscreen2d = transferredCanvas.getContext("2d"); |
| + offscreen2d.fillStyle = "red"; |
| + offscreen2d.fillRect(0, 0, 100, 100); |
| + offscreen2d.fillStyle = "green"; |
| + offscreen2d.fillRect(100, 0, 200, 100); |
|
xidachen
2016/10/13 17:07:51
Same as the other file.
xlai (Olivia)
2016/10/13 18:48:24
Done.
|
| offscreen2d.fillStyle = "blue"; |
| - offscreen2d.fillRect(0, 0, transferredCanvas.width, transferredCanvas.height); |
| + offscreen2d.fillRect(0, 100, 100, 200); |
| + offscreen2d.fillStyle = "black"; |
| + offscreen2d.fillRect(100, 100, 200, 200); |
| offscreen2d.commit(); |
| self.postMessage(""); |
| }; |
| @@ -58,10 +64,10 @@ function main() |
| </script> |
| </head> |
| <body onload="main()"> |
| -<div style="position:relative; width:350px; height:350px; background-color:white"> |
| +<div style="position:relative; width:300px; height:300px; background-color:white"> |
| </div> |
| <div id="container" style="position:absolute; top:0px; left:0px"> |
| -<canvas id="c" width="320" height="320" class="nomargin"></canvas> |
| +<canvas id="c" width="200" height="200" class="nomargin"></canvas> |
| </div> |
| </body> |
| </html> |