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

Issue 2728193004: Add canvas.drawImage test for animated image types (Closed)

Created:
3 years, 9 months ago by Noel Gordon
Modified:
3 years, 9 months ago
Reviewers:
scroggo_chromium
CC:
chromium-reviews, shans, rjwright, blink-reviews-animation_chromium.org, darktears, blink-reviews, Eric Willigers
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add canvas.drawImage test for animated image types canvas.drawImage() for animated images should draw the initial frame (or poster frame) of the animated image, per spec. Add a layout test that covers GIF, APNG, and WEBP animated images, ensure the test can also be run manually in any browser [1]. [1] Manual testing: the test uses <canvas> to read the image pixels, so serve the test page from a local web server (Chrome's same origin policy prevents the pixel read otherwise). If you have python handy, a script can be used: #!/bin/bash - # Simple python server: run in the local directory you want to serve # then load http://localhost:8888 in your browser. python -m SimpleHTTPServer 8888 BUG=698487 Review-Url: https://codereview.chromium.org/2728193004 Cr-Commit-Position: refs/heads/master@{#456273} Committed: https://chromium.googlesource.com/chromium/src/+/427dfb952160b6402103f5db70a0e3dc6c5c500d

Patch Set 1 #

Patch Set 2 : Add manual testing support. #

Total comments: 9

Messages

Total messages: 38 (25 generated)
Noel Gordon
3 years, 9 months ago (2017-03-04 08:09:06 UTC) #9
Noel Gordon
PTAL
3 years, 9 months ago (2017-03-04 08:58:31 UTC) #10
Noel Gordon
On 2017/03/04 08:58:31, noel gordon wrote: > PTAL Patch Set #2: Added manual test support ...
3 years, 9 months ago (2017-03-07 02:11:18 UTC) #18
scroggo_chromium
https://codereview.chromium.org/2728193004/diff/40001/third_party/WebKit/LayoutTests/fast/canvas/canvas-drawImage-animated-images.html File third_party/WebKit/LayoutTests/fast/canvas/canvas-drawImage-animated-images.html (right): https://codereview.chromium.org/2728193004/diff/40001/third_party/WebKit/LayoutTests/fast/canvas/canvas-drawImage-animated-images.html#newcode37 third_party/WebKit/LayoutTests/fast/canvas/canvas-drawImage-animated-images.html:37: } else { // Manual test. On 2017/03/07 02:11:18, ...
3 years, 9 months ago (2017-03-08 20:53:23 UTC) #22
Noel Gordon
https://codereview.chromium.org/2728193004/diff/40001/third_party/WebKit/LayoutTests/fast/canvas/canvas-drawImage-animated-images.html File third_party/WebKit/LayoutTests/fast/canvas/canvas-drawImage-animated-images.html (right): https://codereview.chromium.org/2728193004/diff/40001/third_party/WebKit/LayoutTests/fast/canvas/canvas-drawImage-animated-images.html#newcode37 third_party/WebKit/LayoutTests/fast/canvas/canvas-drawImage-animated-images.html:37: } else { // Manual test. On 2017/03/08 20:53:22, ...
3 years, 9 months ago (2017-03-09 03:41:00 UTC) #23
scroggo_chromium
lgtm
3 years, 9 months ago (2017-03-10 21:53:31 UTC) #24
Noel Gordon
https://codereview.chromium.org/2728193004/diff/40001/third_party/WebKit/LayoutTests/fast/canvas/canvas-drawImage-animated-images.html File third_party/WebKit/LayoutTests/fast/canvas/canvas-drawImage-animated-images.html (right): https://codereview.chromium.org/2728193004/diff/40001/third_party/WebKit/LayoutTests/fast/canvas/canvas-drawImage-animated-images.html#newcode37 third_party/WebKit/LayoutTests/fast/canvas/canvas-drawImage-animated-images.html:37: } else { // Manual test. On 2017/03/09 03:41:00, ...
3 years, 9 months ago (2017-03-11 01:39:56 UTC) #26
Noel Gordon
On 2017/03/10 21:53:31, scroggo_chromium wrote: > lgtm Thanks.
3 years, 9 months ago (2017-03-11 01:40:29 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2728193004/40001
3 years, 9 months ago (2017-03-11 01:40:55 UTC) #29
Noel Gordon
https://codereview.chromium.org/2728193004/diff/40001/third_party/WebKit/LayoutTests/fast/canvas/canvas-drawImage-animated-images.html File third_party/WebKit/LayoutTests/fast/canvas/canvas-drawImage-animated-images.html (right): https://codereview.chromium.org/2728193004/diff/40001/third_party/WebKit/LayoutTests/fast/canvas/canvas-drawImage-animated-images.html#newcode73 third_party/WebKit/LayoutTests/fast/canvas/canvas-drawImage-animated-images.html:73: pixel.data[0] < 5 && pixel.data[1] > 180 && pixel.data[2] ...
3 years, 9 months ago (2017-03-11 02:14:34 UTC) #31
commit-bot: I haz the power
Committed patchset #2 (id:40001) as https://chromium.googlesource.com/chromium/src/+/427dfb952160b6402103f5db70a0e3dc6c5c500d
3 years, 9 months ago (2017-03-11 03:41:30 UTC) #34
Noel Gordon
On 2017/03/11 03:41:30, commit-bot: I haz the power wrote: > Committed patchset #2 (id:40001) as ...
3 years, 9 months ago (2017-03-13 13:53:59 UTC) #35
scroggo
3 years, 9 months ago (2017-03-13 14:00:21 UTC) #36
Message was sent while issue was closed.
On 2017/03/13 13:53:59, noel gordon wrote:
> On 2017/03/11 03:41:30, commit-bot: I haz the power wrote:
> > Committed patchset #2 (id:40001) as
> >
>
https://chromium.googlesource.com/chromium/src/+/427dfb952160b6402103f5db70a0...
> 
> Also Leon, should this patch's bug be linked to the APNG bug?

Sure. Updated the bug.

Powered by Google App Engine
This is Rietveld 408576698