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

Issue 455863002: Fixing bug in RecordingImageBufferSurface::writePixels when using DisplayList2DCanvas (Closed)

Created:
6 years, 4 months ago by Rémi Piotaix
Modified:
6 years, 4 months ago
Reviewers:
Justin Novosad
CC:
blink-reviews, jamesr, krit, jbroman, danakj, Rik, Stephen Chennney, pdr., rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Calling writePixels on a canvas using DisplayList2DCanvas was ignoring the call (canvas.pixels == null) To make this work, we need to fallback to a raster canvas to be able to directly access the canvas' pixels. To be more consistent, the method willReadback has be renamed to willAccessPixels. Fixes the following layout-tests with --enable-display-list-2d-canvas: fast/canvas/canvas-imageSmoothingEnabled.html [ Failure ] fast/canvas/canvas-putImageData.html [ Failure ] fast/canvas/webgl/tex-image-and-sub-image-2d-with-image-rgb565.html [ Failure ] fast/canvas/webgl/tex-image-and-sub-image-2d-with-image-rgba4444.html [ Failure ] fast/canvas/webgl/tex-image-and-sub-image-2d-with-image-rgba5551.html [ Failure ] fast/canvas/webgl/tex-image-and-sub-image-2d-with-image.html [ Failure ] fast/canvas/canvas-imageSmoothingEnabled-patterns.html [ ImageOnlyFailure ] BUG=401624 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=179969

Patch Set 1 #

Patch Set 2 : Rebase master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -8 lines) Patch
M Source/platform/graphics/Canvas2DImageBufferSurface.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/graphics/Canvas2DLayerBridge.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/graphics/Canvas2DLayerBridge.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/graphics/ImageBuffer.cpp View 1 2 chunks +3 lines, -1 line 0 comments Download
M Source/platform/graphics/ImageBufferSurface.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/graphics/ImageBufferSurface.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/graphics/RecordingImageBufferSurface.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/graphics/RecordingImageBufferSurface.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
Rémi Piotaix
PTAL
6 years, 4 months ago (2014-08-08 14:45:58 UTC) #1
Justin Novosad
lgtm for the code, but please make the summary more readable and add a description ...
6 years, 4 months ago (2014-08-08 15:00:08 UTC) #2
Rémi Piotaix
On 2014/08/08 15:00:08, junov wrote: > lgtm for the code, but please make the summary ...
6 years, 4 months ago (2014-08-08 15:20:23 UTC) #3
Justin Novosad
On 2014/08/08 15:20:23, Rémi Piotaix wrote: > On 2014/08/08 15:00:08, junov wrote: > > lgtm ...
6 years, 4 months ago (2014-08-08 19:48:57 UTC) #4
Rémi Piotaix
On 2014/08/08 19:48:57, junov wrote: > On 2014/08/08 15:20:23, Rémi Piotaix wrote: > > On ...
6 years, 4 months ago (2014-08-08 21:34:05 UTC) #5
Justin Novosad
The CQ bit was checked by junov@chromium.org
6 years, 4 months ago (2014-08-09 01:26:04 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/piotaixr@chromium.org/455863002/1
6 years, 4 months ago (2014-08-09 01:26:41 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-09 01:26:50 UTC) #8
commit-bot: I haz the power
Failed to apply patch for Source/platform/graphics/Canvas2DImageBufferSurface.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 4 months ago (2014-08-09 01:26:51 UTC) #9
Rémi Piotaix
The CQ bit was checked by piotaixr@chromium.org
6 years, 4 months ago (2014-08-11 15:45:35 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/piotaixr@chromium.org/455863002/20001
6 years, 4 months ago (2014-08-11 15:46:01 UTC) #11
commit-bot: I haz the power
6 years, 4 months ago (2014-08-11 16:48:04 UTC) #12
Message was sent while issue was closed.
Change committed as 179969

Powered by Google App Engine
This is Rietveld 408576698