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

Issue 189423003: WebGL: Restore atomically both WebGraphicsContext3D and DrawingBuffer together. (Closed)

Created:
6 years, 9 months ago by dshwang
Modified:
6 years, 8 months ago
CC:
blink-reviews, aandrey+blink_chromium.org, dglazkov+blink, Rik, adamk+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

WebGL: Restore atomically both WebGraphicsContext3D and DrawingBuffer together. Currently, WebGLRenderingContextBase::maybeRestoreContext() has a potential crash bug. When WebGraphicsContext3D is created but fbo of DrawingBuffer is not created, WebGLRenderingContextBase considers it as success, although m_context is not updated. It means that DrawingBuffer holds a dangling pointer. This CL changes the success of restoration that completes both WebGraphicsContext3D creation and fbo creation of DrawingBuffer. BUG=344393 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170745

Patch Set 1 #

Patch Set 2 : #

Total comments: 1

Patch Set 3 : Don't change lostContext in terms of 189423003 #

Patch Set 4 : Don't change lostContext about RealLostContext #

Patch Set 5 : #

Total comments: 3

Patch Set 6 : rebase to upstream #

Patch Set 7 : rebase to ToT (2th/Apr) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -10 lines) Patch
M Source/core/html/canvas/WebGLRenderingContextBase.cpp View 1 2 3 4 5 6 2 chunks +16 lines, -10 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
dshwang
Before re-land http://crrev.com/163773007, I want to clarify restoration process. http://crrev.com/163773007 slightly changed restoration process and ...
6 years, 9 months ago (2014-03-10 18:03:26 UTC) #1
dshwang
https://codereview.chromium.org/189423003/diff/20001/Source/core/html/canvas/WebGLRenderingContextBase.cpp File Source/core/html/canvas/WebGLRenderingContextBase.cpp (left): https://codereview.chromium.org/189423003/diff/20001/Source/core/html/canvas/WebGLRenderingContextBase.cpp#oldcode5357 Source/core/html/canvas/WebGLRenderingContextBase.cpp:5357: return; Currently, when failing to create fbo, return here. ...
6 years, 9 months ago (2014-03-10 18:23:30 UTC) #2
dshwang
The previous patch changed WebGLRenderingContextBase::loseContextImpl() to destroy WebGraphicsContext3D and fbo even when RealLostContext mode. That ...
6 years, 9 months ago (2014-03-11 08:57:06 UTC) #3
dshwang
could you review?
6 years, 9 months ago (2014-03-12 09:43:25 UTC) #4
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/189423003/diff/80001/Source/core/html/canvas/WebGLRenderingContextBase.cpp File Source/core/html/canvas/WebGLRenderingContextBase.cpp (right): https://codereview.chromium.org/189423003/diff/80001/Source/core/html/canvas/WebGLRenderingContextBase.cpp#newcode5368 Source/core/html/canvas/WebGLRenderingContextBase.cpp:5368: m_drawingBuffer->bind(); If the code path "if (drawingBuffer->isZeroSized())" is taken ...
6 years, 9 months ago (2014-03-14 01:49:18 UTC) #5
Ken Russell (switch to Gerrit)
Thanks for this patch and sorry about my earlier hasty review. Do you have a ...
6 years, 9 months ago (2014-03-14 02:56:46 UTC) #6
dshwang
Thank you for review. > I'm concerned that we're submitting a lot of patches against ...
6 years, 9 months ago (2014-03-14 07:48:33 UTC) #7
Ken Russell (switch to Gerrit)
I understand. Let's endeavor to write more tests, even if they require manual failure injection, ...
6 years, 9 months ago (2014-03-15 00:07:26 UTC) #8
dshwang
On 2014/03/15 00:07:26, Ken Russell wrote: > I understand. > > Let's endeavor to write ...
6 years, 9 months ago (2014-03-15 20:07:13 UTC) #9
Ken Russell (switch to Gerrit)
Ping. Do you plan to land this CL? It would be better to get it ...
6 years, 9 months ago (2014-03-27 18:59:57 UTC) #10
dshwang
On 2014/03/27 18:59:57, Ken Russell wrote: > Ping. Do you plan to land this CL? ...
6 years, 9 months ago (2014-03-27 19:11:35 UTC) #11
dshwang
On 2014/03/27 18:59:57, Ken Russell wrote: > Ping. Do you plan to land this CL? ...
6 years, 8 months ago (2014-04-02 11:52:48 UTC) #12
Ken Russell (switch to Gerrit)
Yes, let's land this even without unit tests. From code inspection it's clear that this ...
6 years, 8 months ago (2014-04-02 21:05:17 UTC) #13
dshwang
On 2014/04/02 21:05:17, Ken Russell wrote: > Yes, let's land this even without unit tests. ...
6 years, 8 months ago (2014-04-03 05:40:59 UTC) #14
dshwang
On 2014/04/03 05:40:59, dshwang wrote: > On 2014/04/02 21:05:17, Ken Russell wrote: > > Yes, ...
6 years, 8 months ago (2014-04-03 05:43:34 UTC) #15
dshwang
The CQ bit was checked by dongseong.hwang@intel.com
6 years, 8 months ago (2014-04-03 05:43:46 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/189423003/120001
6 years, 8 months ago (2014-04-03 05:43:57 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-03 06:04:37 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg
6 years, 8 months ago (2014-04-03 06:04:38 UTC) #19
dshwang
The CQ bit was checked by dongseong.hwang@intel.com
6 years, 8 months ago (2014-04-03 06:08:05 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dongseong.hwang@intel.com/189423003/120001
6 years, 8 months ago (2014-04-03 06:08:12 UTC) #21
commit-bot: I haz the power
6 years, 8 months ago (2014-04-03 07:18:58 UTC) #22
Message was sent while issue was closed.
Change committed as 170745

Powered by Google App Engine
This is Rietveld 408576698