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

Issue 251023004: WebGL: Free temporary GPU resources held by inactive or hidden WebGL. (Closed)

Created:
6 years, 8 months ago by dshwang
Modified:
6 years, 5 months ago
CC:
aandrey+blink_chromium.org, adamk+blink_chromium.org, blink-reviews, Rik, danakj, dglazkov+blink, krit, dsinclair, jamesr, jbroman, pdr., rwlbuis, Stephen Chennney, Zhenyao Mo
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

WebGL: Free temporary GPU resources held by inactive or hidden WebGL. This CL applies Canvas 2D change in r165966 to WebGL TEST=fast/canvas/webgl/webgl-composite-modes-tabswitching.html, DrawingBufferTest.verifySetIsHiddenProperlyAffectsMailboxes BUG=391400 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177827

Patch Set 1 #

Patch Set 2 : rebase to ToT #

Total comments: 8

Patch Set 3 : add a layout test #

Total comments: 1

Patch Set 4 : use consistent capitalization: setPageVisible. #

Patch Set 5 : Mart new test for virtual/gpu to NeedsToRebase to land #

Total comments: 6

Patch Set 6 : Use ASSERT instead of 'if' in prepareMailbox() #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -26 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
A + LayoutTests/fast/canvas/webgl/webgl-composite-modes-tabswitching.html View 1 2 3 2 chunks +27 lines, -7 lines 0 comments Download
A + LayoutTests/fast/canvas/webgl/webgl-composite-modes-tabswitching-expected.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLCanvasElement.cpp View 1 2 1 chunk +8 lines, -10 lines 0 comments Download
M Source/core/html/canvas/CanvasRenderingContext.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/canvas/CanvasRenderingContext2D.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/canvas/CanvasRenderingContext2D.cpp View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M Source/core/html/canvas/WebGLRenderingContextBase.h View 1 2 3 chunks +7 lines, -4 lines 0 comments Download
M Source/core/html/canvas/WebGLRenderingContextBase.cpp View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M Source/platform/graphics/gpu/DrawingBuffer.h View 1 2 4 chunks +4 lines, -1 line 0 comments Download
M Source/platform/graphics/gpu/DrawingBuffer.cpp View 1 2 3 4 5 5 chunks +25 lines, -3 lines 3 comments Download
M Source/platform/graphics/gpu/DrawingBufferTest.cpp View 1 2 3 4 5 1 chunk +18 lines, -0 lines 1 comment Download

Messages

Total messages: 39 (0 generated)
dshwang
It's kind of follow-up CL for junov's 2D Canvas improvement; https://codereview.chromium.org/117703004
6 years, 8 months ago (2014-04-26 18:25:04 UTC) #1
dshwang
This CL is blocked by https://codereview.chromium.org/253663002/
6 years, 8 months ago (2014-04-26 18:25:54 UTC) #2
dshwang
On 2014/04/26 18:25:54, dshwang wrote: > This CL is blocked by https://codereview.chromium.org/253663002/ Above CL was ...
6 years, 8 months ago (2014-04-27 12:46:16 UTC) #3
Justin Novosad
https://codereview.chromium.org/251023004/diff/20001/Source/core/html/canvas/WebGLRenderingContextBase.h File Source/core/html/canvas/WebGLRenderingContextBase.h (right): https://codereview.chromium.org/251023004/diff/20001/Source/core/html/canvas/WebGLRenderingContextBase.h#newcode364 Source/core/html/canvas/WebGLRenderingContextBase.h:364: virtual bool is3d() const OVERRIDE { return true; } ...
6 years, 7 months ago (2014-04-28 15:21:42 UTC) #4
Ken Russell (switch to Gerrit)
Thanks for this contribution. One significant question. https://codereview.chromium.org/251023004/diff/20001/Source/core/html/canvas/WebGLRenderingContextBase.h File Source/core/html/canvas/WebGLRenderingContextBase.h (right): https://codereview.chromium.org/251023004/diff/20001/Source/core/html/canvas/WebGLRenderingContextBase.h#newcode364 Source/core/html/canvas/WebGLRenderingContextBase.h:364: virtual bool ...
6 years, 7 months ago (2014-04-28 20:51:45 UTC) #5
dshwang
Thank you for review. https://codereview.chromium.org/251023004/diff/20001/Source/core/html/canvas/WebGLRenderingContextBase.h File Source/core/html/canvas/WebGLRenderingContextBase.h (right): https://codereview.chromium.org/251023004/diff/20001/Source/core/html/canvas/WebGLRenderingContextBase.h#newcode364 Source/core/html/canvas/WebGLRenderingContextBase.h:364: virtual bool is3d() const OVERRIDE ...
6 years, 7 months ago (2014-04-29 16:07:03 UTC) #6
Ken Russell (switch to Gerrit)
FYI: until the flakiness associated with recent DrawingBuffer and related changes has been fixed -- ...
6 years, 7 months ago (2014-04-29 20:48:07 UTC) #7
dshwang
On 2014/04/29 20:48:07, Ken Russell wrote: > FYI: until the flakiness associated with recent DrawingBuffer ...
6 years, 5 months ago (2014-07-04 09:45:35 UTC) #8
Ken Russell (switch to Gerrit)
LGTM. Thanks for working on this. One minor comment. https://codereview.chromium.org/251023004/diff/40001/LayoutTests/fast/canvas/webgl/webgl-composite-modes-tabswitching.html File LayoutTests/fast/canvas/webgl/webgl-composite-modes-tabswitching.html (right): https://codereview.chromium.org/251023004/diff/40001/LayoutTests/fast/canvas/webgl/webgl-composite-modes-tabswitching.html#newcode125 LayoutTests/fast/canvas/webgl/webgl-composite-modes-tabswitching.html:125: ...
6 years, 5 months ago (2014-07-08 23:18:24 UTC) #9
dshwang
On 2014/07/08 23:18:24, Ken Russell wrote: > LGTM. Thanks for working on this. One minor ...
6 years, 5 months ago (2014-07-09 06:59:56 UTC) #10
dshwang
The CQ bit was checked by dongseong.hwang@intel.com
6 years, 5 months ago (2014-07-09 07:00:00 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dongseong.hwang@intel.com/251023004/60001
6 years, 5 months ago (2014-07-09 07:00:34 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 5 months ago (2014-07-09 10:05:00 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-09 10:41:12 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/16019)
6 years, 5 months ago (2014-07-09 10:41:15 UTC) #15
dshwang
The CQ bit was checked by dongseong.hwang@intel.com
6 years, 5 months ago (2014-07-09 12:27:16 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dongseong.hwang@intel.com/251023004/60001
6 years, 5 months ago (2014-07-09 12:28:16 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 5 months ago (2014-07-09 13:32:53 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-09 14:41:04 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/16062)
6 years, 5 months ago (2014-07-09 14:41:06 UTC) #20
dshwang
The CQ bit was checked by dongseong.hwang@intel.com
6 years, 5 months ago (2014-07-09 15:13:27 UTC) #21
dshwang
The CQ bit was unchecked by dongseong.hwang@intel.com
6 years, 5 months ago (2014-07-09 15:14:40 UTC) #22
dshwang
The CQ bit was checked by dongseong.hwang@intel.com
6 years, 5 months ago (2014-07-09 15:18:25 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dongseong.hwang@intel.com/251023004/80001
6 years, 5 months ago (2014-07-09 15:19:25 UTC) #24
danakj
Some drive-by follow up thoughts for you. https://codereview.chromium.org/251023004/diff/80001/Source/platform/graphics/gpu/DrawingBuffer.cpp File Source/platform/graphics/gpu/DrawingBuffer.cpp (right): https://codereview.chromium.org/251023004/diff/80001/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode199 Source/platform/graphics/gpu/DrawingBuffer.cpp:199: freeRecycledMailboxes(); Have ...
6 years, 5 months ago (2014-07-09 15:27:28 UTC) #25
dshwang
The CQ bit was unchecked by dongseong.hwang@intel.com
6 years, 5 months ago (2014-07-09 15:56:01 UTC) #26
dshwang
Thank you for comment. https://codereview.chromium.org/251023004/diff/80001/Source/platform/graphics/gpu/DrawingBuffer.cpp File Source/platform/graphics/gpu/DrawingBuffer.cpp (right): https://codereview.chromium.org/251023004/diff/80001/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode199 Source/platform/graphics/gpu/DrawingBuffer.cpp:199: freeRecycledMailboxes(); I've not considered yet. ...
6 years, 5 months ago (2014-07-09 16:04:29 UTC) #27
danakj
https://codereview.chromium.org/251023004/diff/80001/Source/platform/graphics/gpu/DrawingBuffer.cpp File Source/platform/graphics/gpu/DrawingBuffer.cpp (right): https://codereview.chromium.org/251023004/diff/80001/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode199 Source/platform/graphics/gpu/DrawingBuffer.cpp:199: freeRecycledMailboxes(); On 2014/07/09 16:04:29, dshwang wrote: > I've not ...
6 years, 5 months ago (2014-07-09 16:08:48 UTC) #28
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/251023004/diff/80001/Source/platform/graphics/gpu/DrawingBuffer.cpp File Source/platform/graphics/gpu/DrawingBuffer.cpp (right): https://codereview.chromium.org/251023004/diff/80001/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode199 Source/platform/graphics/gpu/DrawingBuffer.cpp:199: freeRecycledMailboxes(); On 2014/07/09 16:08:48, danakj wrote: > On 2014/07/09 ...
6 years, 5 months ago (2014-07-09 17:27:17 UTC) #29
dshwang
On 2014/07/09 16:08:48, danakj wrote: > https://codereview.chromium.org/251023004/diff/80001/Source/platform/graphics/gpu/DrawingBuffer.cpp > File Source/platform/graphics/gpu/DrawingBuffer.cpp (right): > > https://codereview.chromium.org/251023004/diff/80001/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode199 > ...
6 years, 5 months ago (2014-07-09 17:36:08 UTC) #30
dshwang
kbr@, I changes code a bit. Could you review again? I commented why I changed. ...
6 years, 5 months ago (2014-07-09 17:40:54 UTC) #31
dshwang
On 2014/07/09 17:27:17, Ken Russell wrote: > https://codereview.chromium.org/251023004/diff/80001/Source/platform/graphics/gpu/DrawingBuffer.cpp > File Source/platform/graphics/gpu/DrawingBuffer.cpp (right): > > https://codereview.chromium.org/251023004/diff/80001/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode199 ...
6 years, 5 months ago (2014-07-09 17:45:38 UTC) #32
danakj
On Wed, Jul 9, 2014 at 1:27 PM, <kbr@chromium.org> wrote: > > https://codereview.chromium.org/251023004/diff/80001/ > Source/platform/graphics/gpu/DrawingBuffer.cpp ...
6 years, 5 months ago (2014-07-09 17:55:17 UTC) #33
Ken Russell (switch to Gerrit)
Looks nice. LGTM https://codereview.chromium.org/251023004/diff/100001/Source/platform/graphics/gpu/DrawingBuffer.cpp File Source/platform/graphics/gpu/DrawingBuffer.cpp (right): https://codereview.chromium.org/251023004/diff/100001/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode192 Source/platform/graphics/gpu/DrawingBuffer.cpp:192: ASSERT(!m_destructionInProgress); This assert seems a little ...
6 years, 5 months ago (2014-07-09 20:57:57 UTC) #34
dshwang
The CQ bit was checked by dongseong.hwang@intel.com
6 years, 5 months ago (2014-07-10 12:17:33 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dongseong.hwang@intel.com/251023004/100001
6 years, 5 months ago (2014-07-10 12:18:02 UTC) #36
commit-bot: I haz the power
Change committed as 177827
6 years, 5 months ago (2014-07-10 13:18:29 UTC) #37
Justin Novosad
A revert of this CL has been created in https://codereview.chromium.org/385663002/ by junov@chromium.org. The reason for ...
6 years, 5 months ago (2014-07-10 17:10:53 UTC) #38
dshwang
6 years, 5 months ago (2014-07-10 19:52:58 UTC) #39
Message was sent while issue was closed.
Thank you for reporting. I'll investigate.

Powered by Google App Engine
This is Rietveld 408576698