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

Issue 530723003: canvas2d.drawImage(video) doesn't composite correctly. (Closed)

Created:
6 years, 3 months ago by dshwang
Modified:
6 years, 2 months ago
Reviewers:
Justin Novosad
CC:
blink-reviews, aandrey+blink_chromium.org, blink-reviews-html_chromium.org, dglazkov+blink, Rik
Project:
blink
Visibility:
Public.

Description

canvas2d.drawImage(video) doesn't composite correctly. Following composite operation should update whole canvas area; SourceIn, SourceOut, DestinationIn, DestinationAtop, Copy. However, drawImage(video) doesn't do that unlike drawImage(image) and drawImage(canvas) In addition, drawImage(video) invalidated a bigger region that needed. This CL fixes it and add a relevant test. TEST=fast/canvas/canvas-composite-video.html, fast/canvas/canvas-composite-repaint-by-all-imagesource.html BUG=407079 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183541

Patch Set 1 #

Patch Set 2 : Fix broken layout tests #

Total comments: 1

Patch Set 3 : Add a test that checks repaint regions #

Patch Set 4 : Mark virtual/gpu/fast/canvas/canvas-composite-repaint-by-all-imagesource.html to NeedsRebaseline #

Patch Set 5 : mark fast/canvas/canvas-composite-repaint-by-all-imagesource.html to NeedsRebaseline #

Unified diffs Side-by-side diffs Delta from patch set Stats (+287 lines, -71 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M LayoutTests/fast/canvas/canvas-composite-canvas.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/canvas/canvas-composite-image.html View 1 chunk +1 line, -1 line 0 comments Download
A LayoutTests/fast/canvas/canvas-composite-repaint-by-all-imagesource.html View 1 2 1 chunk +178 lines, -0 lines 0 comments Download
A + LayoutTests/fast/canvas/canvas-composite-video.html View 2 chunks +29 lines, -24 lines 0 comments Download
A LayoutTests/fast/canvas/canvas-composite-video-expected.txt View 1 chunk +15 lines, -0 lines 0 comments Download
M LayoutTests/fast/canvas/resources/canvas-composite-image-common.js View 3 chunks +19 lines, -10 lines 0 comments Download
M Source/core/html/canvas/CanvasRenderingContext2D.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/html/canvas/CanvasRenderingContext2D.cpp View 1 2 2 chunks +39 lines, -34 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
dshwang
Hi, could you review? The video png is very same to -canvas and -image png
6 years, 3 months ago (2014-09-01 10:59:18 UTC) #2
Justin Novosad
On 2014/09/01 10:59:18, dshwang(Vacation) wrote: > Hi, could you review? The video png is very ...
6 years, 3 months ago (2014-09-02 16:42:56 UTC) #3
Justin Novosad
https://codereview.chromium.org/530723003/diff/20001/Source/core/html/canvas/CanvasRenderingContext2D.cpp File Source/core/html/canvas/CanvasRenderingContext2D.cpp (left): https://codereview.chromium.org/530723003/diff/20001/Source/core/html/canvas/CanvasRenderingContext2D.cpp#oldcode1540 Source/core/html/canvas/CanvasRenderingContext2D.cpp:1540: FloatRect dirtyRect; I think there was a bug here ...
6 years, 3 months ago (2014-09-02 16:45:03 UTC) #4
dshwang
On 2014/09/02 16:45:03, junov wrote: > https://codereview.chromium.org/530723003/diff/20001/Source/core/html/canvas/CanvasRenderingContext2D.cpp > File Source/core/html/canvas/CanvasRenderingContext2D.cpp (left): > > https://codereview.chromium.org/530723003/diff/20001/Source/core/html/canvas/CanvasRenderingContext2D.cpp#oldcode1540 > ...
6 years, 2 months ago (2014-10-03 17:08:15 UTC) #5
dshwang
I add canvas-composite-repaint-by-all-imagesource.html which check repaint regions on all combinations of fillRect() and drawImage(3 kinds ...
6 years, 2 months ago (2014-10-03 19:13:38 UTC) #6
Justin Novosad
On 2014/10/03 19:13:38, dshwang wrote: > I add canvas-composite-repaint-by-all-imagesource.html which check repaint > regions on ...
6 years, 2 months ago (2014-10-06 17:47:32 UTC) #7
dshwang
On 2014/10/06 17:47:32, junov wrote: > On 2014/10/03 19:13:38, dshwang wrote: > > I add ...
6 years, 2 months ago (2014-10-09 17:54:40 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/530723003/60001
6 years, 2 months ago (2014-10-09 17:56:00 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/26579)
6 years, 2 months ago (2014-10-10 05:42:16 UTC) #12
dshwang
On 2014/10/10 05:42:16, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 2 months ago (2014-10-10 11:48:22 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/530723003/490001
6 years, 2 months ago (2014-10-10 11:48:52 UTC) #15
commit-bot: I haz the power
6 years, 2 months ago (2014-10-10 13:05:52 UTC) #16
Message was sent while issue was closed.
Committed patchset #5 (id:490001) as 183541

Powered by Google App Engine
This is Rietveld 408576698