https://bugs.webkit.org/show_bug.cgi?id=79659
Patch by Dirk Schulze <krit@webkit.org> on 2014-04-11
Reviewed by Andreas Kling.
Add performance tests for real this time.
* Canvas/compositing-drawimage.html: Added.
* Canvas/compositing-fillRect.html: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@167124
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
--- /dev/null
+<!DOCTYPE html>
+<html>
+<body>
+<script src="../resources/runner.js"></script>
+<script>
+
+var source = document.createElement("canvas");
+source.width = 300;
+source.height = 150;
+source.getContext("2d").fillStyle = 'rgba(0,128,0,0.5)';
+source.getContext("2d").fillRect(0, 0, source.width, source.height);
+
+var target = document.createElement("canvas");
+target.width = source.width;
+target.height = source.height;
+var context = target.getContext("2d")
+context.globalCompositeOperation = "destination-atop";
+
+PerfTestRunner.measureRunsPerSecond({run: function() {
+ context.drawImage(source, 0, 0);
+}});
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<html>
+<body>
+<script src="../resources/runner.js"></script>
+<script>
+var target = document.createElement("canvas");
+target.width = 300;
+target.height = 150;
+var context = target.getContext("2d");
+context.globalCompositeOperation = "destination-atop";
+context.fillStyle = "rgba(0,128,0,0.5)";
+
+PerfTestRunner.measureRunsPerSecond({run: function() {
+ context.fillRect(10,10,10,10);
+}});
+</script>
+</body>
+</html>
+2014-04-11 Dirk Schulze <krit@webkit.org>
+
+ Optimize Canvas fill and drawImage with SourceIn, DestinationIn, SourceOut, and DestinationAtop using transparencyLayer.
+ https://bugs.webkit.org/show_bug.cgi?id=79659
+
+ Reviewed by Andreas Kling.
+
+ Add performance tests for real this time.
+
+ * Canvas/compositing-drawimage.html: Added.
+ * Canvas/compositing-fillRect.html: Added.
+
+
2014-04-11 Dirk Schulze <krit@webkit.org>
Optimize Canvas fill and drawImage with SourceIn, DestinationIn, SourceOut, and DestinationAtop using transparencyLayer.