Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / PerformanceTests / Canvas / drawimage.html
blob8cafd02d0e52c1e02978a39e28811e026426f320
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="../resources/runner.js"></script>
5 <script>
7 var source = document.createElement("canvas");
8 source.width = 300;
9 source.height = 150;
10 source.getContext("2d").fillStyle = 'green';
11 source.getContext("2d").fillRect(0, 0, source.width, source.height);
13 var target = document.createElement("canvas");
14 target.width = source.width;
15 target.height = source.height;
16 var context = target.getContext("2d")
18 PerfTestRunner.measureRunsPerSecond({
19 description: "Measures performance of drawing an image onto a canvas.",
20 run: function() {
21 context.drawImage(source, 0, 0);
23 });
24 </script>
25 </body>
26 </html>