New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 670393 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Dec 2016
Cc:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

OffscreenCanvas.drawImage() should get transparent black when the source is another OffscreenCanvas without a context

Project Member Reported by xidac...@chromium.org, Dec 1 2016

Issue description

Right now we do not handle this correctly.
 
Project Member

Comment 1 by bugdroid1@chromium.org, Dec 1 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/c5164dcf766dffdbbe6575e7c7c68cb920698c8a

commit c5164dcf766dffdbbe6575e7c7c68cb920698c8a
Author: xidachen <xidachen@chromium.org>
Date: Thu Dec 01 21:40:18 2016

Fix a minor issue in OffscreenCanvas.drawImage

This CL fixes the problem in OffscreenCanvas.drawImage function when it
takes another OffscreenCanvas without a context as its image source. In
this case, it should draw transparent black. However, currently this is
not currently handled.

This CL also adds a layout test to verify the case.

BUG= 670393 

Review-Url: https://codereview.chromium.org/2550443002
Cr-Commit-Position: refs/heads/master@{#435723}

[add] https://crrev.com/c5164dcf766dffdbbe6575e7c7c68cb920698c8a/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-2d-drawImage-no-context.html
[modify] https://crrev.com/c5164dcf766dffdbbe6575e7c7c68cb920698c8a/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp

Status: Fixed (was: Assigned)

Sign in to add a comment