Title: [167124] trunk/PerformanceTests
Revision
167124
Author
k...@webkit.org
Date
2014-04-11 05:44:58 -0700 (Fri, 11 Apr 2014)

Log Message

Optimize Canvas fill and drawImage with SourceIn, DestinationIn, SourceOut, and DestinationAtop using transparencyLayer.
https://bugs.webkit.org/show_bug.cgi?id=79659

Patch by Dirk Schulze <k...@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.

Modified Paths

Added Paths

Diff

Added: trunk/PerformanceTests/Canvas/compositing-drawimage.html (0 => 167124)


--- trunk/PerformanceTests/Canvas/compositing-drawimage.html	                        (rev 0)
+++ trunk/PerformanceTests/Canvas/compositing-drawimage.html	2014-04-11 12:44:58 UTC (rev 167124)
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<body>
+<script src=""
+<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>

Added: trunk/PerformanceTests/Canvas/compositing-fillRect.html (0 => 167124)


--- trunk/PerformanceTests/Canvas/compositing-fillRect.html	                        (rev 0)
+++ trunk/PerformanceTests/Canvas/compositing-fillRect.html	2014-04-11 12:44:58 UTC (rev 167124)
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<body>
+<script src=""
+<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>

Modified: trunk/PerformanceTests/ChangeLog (167123 => 167124)


--- trunk/PerformanceTests/ChangeLog	2014-04-11 12:37:26 UTC (rev 167123)
+++ trunk/PerformanceTests/ChangeLog	2014-04-11 12:44:58 UTC (rev 167124)
@@ -5,6 +5,19 @@
 
         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  <k...@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 fillRect() and drawImage() on composited contexts.
 
         * Canvas/compositing-drawimage.html: Added.
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to