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

Side by Side Diff: PerformanceTests/Canvas/drawimage-not-pixelaligned.html

Issue 478003002: Fill in descriptions on relevant blink_perf tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: alancutter nits Created 6 years, 2 months 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
« no previous file with comments | « PerformanceTests/Canvas/drawimage.html ('k') | PerformanceTests/DOM/TraverseChildNodes.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <body> 3 <body>
4 <script src="../resources/runner.js"></script> 4 <script src="../resources/runner.js"></script>
5 <script> 5 <script>
6 6
7 var source = document.createElement("canvas"); 7 var source = document.createElement("canvas");
8 source.width = 300; 8 source.width = 300;
9 source.height = 150; 9 source.height = 150;
10 source.getContext("2d").fillStyle = 'green'; 10 source.getContext("2d").fillStyle = 'green';
11 source.getContext("2d").fillRect(0, 0, source.width, source.height); 11 source.getContext("2d").fillRect(0, 0, source.width, source.height);
12 12
13 var target = document.createElement("canvas"); 13 var target = document.createElement("canvas");
14 target.width = source.width; 14 target.width = source.width;
15 target.height = source.height; 15 target.height = source.height;
16 var context = target.getContext("2d") 16 var context = target.getContext("2d")
17 17
18 PerfTestRunner.measureRunsPerSecond({run: function() { 18 PerfTestRunner.measureRunsPerSecond({
19 context.drawImage(source, 10.5, 10.5, 200, 200); 19 description: "Measures performance of drawing an image onto a canvas that is not pixel aligned.",
20 }}); 20 run: function() {
21 context.drawImage(source, 10.5, 10.5, 200, 200);
22 }
23 });
21 </script> 24 </script>
22 </body> 25 </body>
23 </html> 26 </html>
OLDNEW
« no previous file with comments | « PerformanceTests/Canvas/drawimage.html ('k') | PerformanceTests/DOM/TraverseChildNodes.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698