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

Issue 19543014: Direct composite canvas background if possible. (Closed)

Created:
7 years, 5 months ago by alokp
Modified:
7 years, 5 months ago
Reviewers:
jamesr, enne (OOO)
CC:
blink-reviews, eae+blinkwatch, leviw+renderwatch, abarth-chromium, danakj, dglazkov+blink, Rik, jchaffraix+rendering, Stephen Chennney, jeez, pdr.
Visibility:
Public.

Description

Direct composite canvas background if possible. This avoids allocating backing for the containter GraphicsLayer. If the background is opaque, canvas texture can be drawn with GL blending disabled. If the canvas has global opacity, it also avoids drawing to an intermediate render-surface. BUG=236982 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=154786

Patch Set 1 #

Patch Set 2 : added canvas-2d tests #

Patch Set 3 : restructured layout tests #

Patch Set 4 : re-uploading patch #

Total comments: 2

Patch Set 5 : modified pixel tests #

Patch Set 6 : resolved layout test failures #

Unified diffs Side-by-side diffs Delta from patch set Stats (+398 lines, -68 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
A LayoutTests/compositing/draws-content/canvas-background-layer.html View 1 2 1 chunk +67 lines, -0 lines 0 comments Download
A + LayoutTests/compositing/draws-content/canvas-background-layer-expected.txt View 1 2 1 chunk +12 lines, -6 lines 0 comments Download
A LayoutTests/compositing/draws-content/canvas-simple-background.html View 1 2 3 4 1 chunk +39 lines, -0 lines 0 comments Download
A LayoutTests/compositing/draws-content/canvas-simple-background-expected.html View 1 2 3 4 1 chunk +29 lines, -0 lines 0 comments Download
A LayoutTests/compositing/draws-content/webgl-background-layer.html View 1 2 1 chunk +70 lines, -0 lines 0 comments Download
A + LayoutTests/compositing/draws-content/webgl-background-layer-expected.txt View 1 2 1 chunk +12 lines, -6 lines 0 comments Download
A LayoutTests/compositing/draws-content/webgl-simple-background.html View 1 2 3 4 1 chunk +44 lines, -0 lines 0 comments Download
A LayoutTests/compositing/draws-content/webgl-simple-background-expected.html View 1 2 3 4 1 chunk +29 lines, -0 lines 0 comments Download
A + LayoutTests/virtual/softwarecompositing/draws-content/canvas-background-layer-expected.txt View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M Source/core/platform/graphics/chromium/Canvas2DLayerBridge.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/platform/graphics/gpu/DrawingBuffer.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/RenderLayerBacking.cpp View 1 2 3 4 5 6 chunks +80 lines, -51 lines 0 comments Download
M Source/core/rendering/RenderVideo.h View 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/testing/Internals.cpp View 1 2 3 4 5 1 chunk +3 lines, -6 lines 0 comments Download
M public/platform/WebExternalTextureLayer.h View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
alokp
I would like to add a similar layout test for 2D canvas, but this is ...
7 years, 5 months ago (2013-07-19 06:04:07 UTC) #1
enne (OOO)
On 2013/07/19 06:04:07, Alok Priyadarshi wrote: > I would like to add a similar layout ...
7 years, 5 months ago (2013-07-19 16:23:46 UTC) #2
jamesr
On Jul 18, 2013 11:04 PM, <alokp@chromium.org> wrote: > > Reviewers: jamesr, enne, > > ...
7 years, 5 months ago (2013-07-19 17:01:37 UTC) #3
alokp
Included canvas-2d by detecting if canvas is accelerated. If layer-tree-string for canvas element is empty, ...
7 years, 5 months ago (2013-07-19 23:27:07 UTC) #4
jamesr
On 2013/07/19 23:27:07, Alok Priyadarshi wrote: > Included canvas-2d by detecting if canvas is accelerated. ...
7 years, 5 months ago (2013-07-19 23:28:41 UTC) #5
alokp
> > Have you tested that this test actually tests the accelerated canvas 2d path? ...
7 years, 5 months ago (2013-07-19 23:39:35 UTC) #6
alokp
I realized that I only need pixel (ref) test for the case where background is ...
7 years, 5 months ago (2013-07-22 18:07:12 UTC) #7
enne (OOO)
Could you upload this patch again? I'm seeing "error: old chunk mismatch" when looking at ...
7 years, 5 months ago (2013-07-22 19:56:55 UTC) #8
alokp
On 2013/07/22 19:56:55, enne wrote: > Could you upload this patch again? I'm seeing "error: ...
7 years, 5 months ago (2013-07-22 20:22:46 UTC) #9
enne (OOO)
https://codereview.chromium.org/19543014/diff/24002/LayoutTests/compositing/draws-content/canvas-simple-background.html File LayoutTests/compositing/draws-content/canvas-simple-background.html (right): https://codereview.chromium.org/19543014/diff/24002/LayoutTests/compositing/draws-content/canvas-simple-background.html#newcode19 LayoutTests/compositing/draws-content/canvas-simple-background.html:19: context.clearRect(0, 0, canvas.width, canvas.height); Could you draw something in ...
7 years, 5 months ago (2013-07-22 21:57:48 UTC) #10
alokp
https://codereview.chromium.org/19543014/diff/24002/LayoutTests/compositing/draws-content/canvas-simple-background.html File LayoutTests/compositing/draws-content/canvas-simple-background.html (right): https://codereview.chromium.org/19543014/diff/24002/LayoutTests/compositing/draws-content/canvas-simple-background.html#newcode19 LayoutTests/compositing/draws-content/canvas-simple-background.html:19: context.clearRect(0, 0, canvas.width, canvas.height); On 2013/07/22 21:57:48, enne wrote: ...
7 years, 5 months ago (2013-07-22 23:40:19 UTC) #11
enne (OOO)
Thanks. lgtm
7 years, 5 months ago (2013-07-23 01:43:26 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alokp@chromium.org/19543014/38001
7 years, 5 months ago (2013-07-23 17:51:28 UTC) #13
commit-bot: I haz the power
Retried try job too often on blink_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=blink_presubmit&number=4063
7 years, 5 months ago (2013-07-23 18:03:21 UTC) #14
alokp
On 2013/07/23 18:03:21, I haz the power (commit-bot) wrote: > Retried try job too often ...
7 years, 5 months ago (2013-07-23 18:05:47 UTC) #15
jamesr
public/ lgtm
7 years, 5 months ago (2013-07-23 18:36:13 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alokp@chromium.org/19543014/38001
7 years, 5 months ago (2013-07-23 18:42:28 UTC) #17
commit-bot: I haz the power
Retried try job too often on mac_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_layout_rel&number=13723
7 years, 5 months ago (2013-07-23 19:59:37 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alokp@chromium.org/19543014/56001
7 years, 5 months ago (2013-07-23 20:38:54 UTC) #19
commit-bot: I haz the power
7 years, 5 months ago (2013-07-23 22:40:35 UTC) #20
Message was sent while issue was closed.
Change committed as 154786

Powered by Google App Engine
This is Rietveld 408576698