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

Issue 117703004: Free temporary GPU and memory resources held by inactive or hidden 2D canvases (Closed)

Created:
7 years ago by Justin Novosad
Modified:
6 years, 10 months ago
CC:
blink-reviews, jamesr, krit, dsinclair, jbroman, danakj, Rik, Stephen Chennney, pdr., rwlbuis, Ken Russell (switch to Gerrit)
Visibility:
Public.

Description

Free temporary GPU and memory resources held by inactive or hidden 2D canvases BUG=272374 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=165966

Patch Set 1 #

Patch Set 2 : fixed upstream git branch #

Total comments: 4

Patch Set 3 : Make hidden state propagate frome document to layer bridge #

Patch Set 4 : adding unit test for document visibility observer #

Patch Set 5 : improved test #

Total comments: 8

Patch Set 6 : Response to review comments by senorblanco #

Total comments: 1

Patch Set 7 : improved comments #

Patch Set 8 : typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+394 lines, -221 lines) Patch
M Source/core/core.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/dom/Document.h View 1 2 3 4 5 4 chunks +26 lines, -1 line 0 comments Download
M Source/core/dom/Document.cpp View 1 2 3 4 5 3 chunks +52 lines, -1 line 0 comments Download
A + Source/core/dom/DocumentTest.cpp View 1 2 3 4 5 2 chunks +63 lines, -122 lines 0 comments Download
M Source/core/frame/Frame.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/frame/Frame.cpp View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/html/HTMLCanvasElement.h View 1 2 3 chunks +8 lines, -1 line 0 comments Download
M Source/core/html/HTMLCanvasElement.cpp View 1 2 2 chunks +23 lines, -0 lines 0 comments Download
M Source/core/page/Page.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/graphics/Canvas2DImageBufferSurface.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/platform/graphics/Canvas2DLayerBridge.h View 1 2 5 chunks +13 lines, -2 lines 0 comments Download
M Source/platform/graphics/Canvas2DLayerBridge.cpp View 1 2 3 4 5 6 7 12 chunks +101 lines, -40 lines 0 comments Download
M Source/platform/graphics/Canvas2DLayerManager.h View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M Source/platform/graphics/Canvas2DLayerManager.cpp View 1 2 3 4 5 5 chunks +37 lines, -38 lines 0 comments Download
M Source/platform/graphics/ImageBuffer.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M Source/platform/graphics/ImageBufferSurface.h View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M Source/web/tests/Canvas2DLayerManagerTest.cpp View 1 2 3 4 5 7 chunks +54 lines, -7 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Justin Novosad
7 years ago (2013-12-18 21:36:28 UTC) #1
eseidel
https://codereview.chromium.org/117703004/diff/20001/Source/core/html/HTMLCanvasElement.h File Source/core/html/HTMLCanvasElement.h (right): https://codereview.chromium.org/117703004/diff/20001/Source/core/html/HTMLCanvasElement.h#newcode130 Source/core/html/HTMLCanvasElement.h:130: virtual bool hidden() const OVERRIDE { return document().hidden(); } ...
7 years ago (2013-12-19 02:56:32 UTC) #2
Justin Novosad
On 2013/12/19 02:56:32, eseidel wrote: > Shouldn't we just be signing up for some sort ...
7 years ago (2013-12-19 14:00:06 UTC) #3
eseidel
We currently don't have any real viewporting support in Blink. We need to grow some, ...
7 years ago (2013-12-19 19:41:38 UTC) #4
Justin Novosad
Done. new patch. The new patch uses an observer pattern to propagate visibility state changed ...
6 years, 11 months ago (2014-01-24 18:13:13 UTC) #5
Stephen White
https://codereview.chromium.org/117703004/diff/100001/Source/core/html/HTMLCanvasElement.h File Source/core/html/HTMLCanvasElement.h (right): https://codereview.chromium.org/117703004/diff/100001/Source/core/html/HTMLCanvasElement.h#newcode34 Source/core/html/HTMLCanvasElement.h:34: #include "platform/graphics/Canvas2DLayerBridge.h" Is this still necessary? I see DocumentVisibilityObserver ...
6 years, 11 months ago (2014-01-24 18:52:34 UTC) #6
Justin Novosad
https://codereview.chromium.org/117703004/diff/100001/Source/platform/graphics/Canvas2DLayerBridge.cpp File Source/platform/graphics/Canvas2DLayerBridge.cpp (right): https://codereview.chromium.org/117703004/diff/100001/Source/platform/graphics/Canvas2DLayerBridge.cpp#newcode368 Source/platform/graphics/Canvas2DLayerBridge.cpp:368: // With hidden canvases, we release the SkImage immediately ...
6 years, 11 months ago (2014-01-27 18:43:25 UTC) #7
Justin Novosad
New Patch.
6 years, 11 months ago (2014-01-27 18:47:11 UTC) #8
Stephen White
Canvas LGTM. eseidel@, could you weigh in on the DOM parts? https://codereview.chromium.org/117703004/diff/290001/Source/platform/graphics/Canvas2DLayerBridge.cpp File Source/platform/graphics/Canvas2DLayerBridge.cpp (right): ...
6 years, 11 months ago (2014-01-27 18:55:13 UTC) #9
Justin Novosad
Comment fixed. eseidel@: anything to add?
6 years, 11 months ago (2014-01-27 20:23:13 UTC) #10
eseidel
I'm OK with the general approach. Are these resources held by the renderer or the ...
6 years, 11 months ago (2014-01-28 00:02:27 UTC) #11
Justin Novosad
On 2014/01/28 00:02:27, eseidel wrote: > I'm OK with the general approach. Are these resources ...
6 years, 10 months ago (2014-01-28 16:21:02 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/junov@chromium.org/117703004/330001
6 years, 10 months ago (2014-01-28 16:21:15 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=14798
6 years, 10 months ago (2014-01-28 16:38:05 UTC) #14
Justin Novosad
Oops, missing approval from a Source/web OWNER for a... unit test! This is ridiculous. +aelias
6 years, 10 months ago (2014-01-28 18:23:46 UTC) #15
aelias_OOO_until_Jul13
On 2014/01/28 18:23:46, junov wrote: > Oops, missing approval from a Source/web OWNER for a... ...
6 years, 10 months ago (2014-01-28 18:54:53 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/junov@chromium.org/117703004/330001
6 years, 10 months ago (2014-01-28 19:07:34 UTC) #17
commit-bot: I haz the power
Change committed as 165966
6 years, 10 months ago (2014-01-28 21:47:04 UTC) #18
commit-bot: I haz the power
6 years, 10 months ago (2014-01-28 21:49:28 UTC) #19
Message was sent while issue was closed.
CQ bit was unchecked on CL. Ignoring.

Powered by Google App Engine
This is Rietveld 408576698