RESOLVED FIXED77784
Canvas-into-canvas drawing should respect backing store scale ratio
https://bugs.webkit.org/show_bug.cgi?id=77784
Summary Canvas-into-canvas drawing should respect backing store scale ratio
Tim Horton
Reported 2012-02-03 14:44:12 PST
When drawing between two canvases where the backing store scale ratio is not 1, using the ctx.drawImage(otherCanvas, 0, 0) form of drawImage() doesn't respect the scale ratio. <rdar://problem/10549729> I have a patch.
Attachments
patch (3.47 KB, patch)
2012-02-03 14:45 PST, Tim Horton
mitz: review+
webkit.review.bot: commit-queue-
revised patch (3.51 KB, patch)
2012-02-03 19:00 PST, Tim Horton
gyuyoung.kim: commit-queue-
revised patch (which actually builds!) (3.50 KB, patch)
2012-02-03 19:05 PST, Tim Horton
mitz: review+
Tim Horton
Comment 1 2012-02-03 14:45:26 PST
mitz
Comment 2 2012-02-03 14:49:57 PST
Comment on attachment 125419 [details] patch Makes sense
Tim Horton
Comment 3 2012-02-03 15:03:18 PST
(In reply to comment #2) > (From update of attachment 125419 [details]) > Makes sense Only mostly... there's one mistake: the destination rect should be equal to the source rect, not the size of the destination canvas. I *did* have that right last time; gotta stop second-guessing. r=you with that change?
WebKit Review Bot
Comment 4 2012-02-03 17:29:19 PST
Comment on attachment 125419 [details] patch Attachment 125419 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/11424456 New failing tests: fast/canvas/canvas-composite-canvas.html canvas/philip/tests/2d.fillStyle.parse.current.removed.html
mitz
Comment 5 2012-02-03 18:47:59 PST
(In reply to comment #3) > (In reply to comment #2) > > (From update of attachment 125419 [details] [details]) > > Makes sense > > Only mostly... there's one mistake: the destination rect should be equal to the source rect, not the size of the destination canvas. I *did* have that right last time; gotta stop second-guessing. r=you with that change? I was going to say yes, but what's this failure the EWS bot is reporting?
Tim Horton
Comment 6 2012-02-03 18:49:12 PST
(In reply to comment #5) > (In reply to comment #3) > > (In reply to comment #2) > > > (From update of attachment 125419 [details] [details] [details]) > > > Makes sense > > > > Only mostly... there's one mistake: the destination rect should be equal to the source rect, not the size of the destination canvas. I *did* have that right last time; gotta stop second-guessing. r=you with that change? > > I was going to say yes, but what's this failure the EWS bot is reporting? I'm going to double check in a minute, but I'm willing to bet that *is* the failure the EWS bot is reporting. For some reason I didn't hit that when running the tests locally, though, so I have to figure out how to get it to fail!
mitz
Comment 7 2012-02-03 18:57:27 PST
Could you post the corrected version of the patch to see what the bit thinks about it?
Tim Horton
Comment 8 2012-02-03 19:00:42 PST
Created attachment 125463 [details] revised patch Sure, let's see what EWS says.
Gyuyoung Kim
Comment 9 2012-02-03 19:03:33 PST
Comment on attachment 125463 [details] revised patch Attachment 125463 [details] did not pass efl-ews (efl): Output: http://queues.webkit.org/results/11421531
Early Warning System Bot
Comment 10 2012-02-03 19:03:49 PST
Comment on attachment 125463 [details] revised patch Attachment 125463 [details] did not pass qt-ews (qt): Output: http://queues.webkit.org/results/11416605
Tim Horton
Comment 11 2012-02-03 19:05:18 PST
Created attachment 125465 [details] revised patch (which actually builds!) Ugh, I undo'd a little too far.
Tim Horton
Comment 12 2012-02-03 22:44:43 PST
Note You need to log in before you can comment on or make changes to this bug.