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

Issue 14840015: Lose/restore WebGL contexts if multisampling blackist status changes at runtime. (Closed)

Created:
7 years, 7 months ago by bajones
Modified:
7 years, 7 months ago
CC:
blink-reviews, danakj, jamesr, Stephen Chennney, jeez, Zhenyao Mo
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Lose/restore WebGL contexts if multisampling blackist status changes at runtime. Also added a mechanism to listen for changes to the blacklist status. BUG=237931 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=150231

Patch Set 1 #

Total comments: 2

Patch Set 2 : Changed to a more generic SettingsChangedObserver #

Total comments: 13

Patch Set 3 : Reverted back to MultisampleChangedObserver, addressed feedback #

Patch Set 4 : Forgot to remove DrawingBuffer change #

Total comments: 9

Patch Set 5 : Refactored WebGLRenderingContext to inherit from MultisampleChangedObserver #

Patch Set 6 : Missed one of kbr's suggestions in previous patch #

Total comments: 1

Patch Set 7 : Changed to using an explicit registration flag and looking up the page on destruct #

Patch Set 8 : Replaced erroniously removed default attributes #

Total comments: 1

Patch Set 9 : Changed settings to pass by const reference #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -20 lines) Patch
M Source/core/html/canvas/WebGLRenderingContext.h View 1 2 3 4 5 6 6 chunks +12 lines, -3 lines 0 comments Download
M Source/core/html/canvas/WebGLRenderingContext.cpp View 1 2 3 4 5 6 7 8 10 chunks +52 lines, -16 lines 0 comments Download
M Source/core/page/Page.h View 1 2 3 4 5 6 7 2 chunks +11 lines, -0 lines 0 comments Download
M Source/core/page/Page.cpp View 1 2 3 4 5 6 7 1 chunk +17 lines, -0 lines 0 comments Download
M Source/core/page/Settings.h View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M Source/core/page/Settings.cpp View 1 2 3 4 1 chunk +14 lines, -0 lines 0 comments Download
M Source/core/page/Settings.in View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 31 (0 generated)
bajones
Not sure who the appropriate reviewers would be for the Page and Settings changes
7 years, 7 months ago (2013-05-03 21:16:51 UTC) #1
abarth-chromium
https://codereview.chromium.org/14840015/diff/1/Source/core/page/Settings.in File Source/core/page/Settings.in (left): https://codereview.chromium.org/14840015/diff/1/Source/core/page/Settings.in#oldcode79 Source/core/page/Settings.in:79: openGLMultisamplingEnabled initial=true This CL is going in the wrong ...
7 years, 7 months ago (2013-05-06 15:19:19 UTC) #2
greggman
On 2013/05/06 15:19:19, abarth wrote: > https://codereview.chromium.org/14840015/diff/1/Source/core/page/Settings.in > File Source/core/page/Settings.in (left): > > https://codereview.chromium.org/14840015/diff/1/Source/core/page/Settings.in#oldcode79 > ...
7 years, 7 months ago (2013-05-06 17:29:28 UTC) #3
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/14840015/diff/1/Source/core/page/Settings.in File Source/core/page/Settings.in (left): https://codereview.chromium.org/14840015/diff/1/Source/core/page/Settings.in#oldcode79 Source/core/page/Settings.in:79: openGLMultisamplingEnabled initial=true On 2013/05/06 15:19:20, abarth wrote: > This ...
7 years, 7 months ago (2013-05-06 17:43:16 UTC) #4
abarth-chromium
On 2013/05/06 17:29:28, greggman wrote: > Hey Brandon, Welcome to reviewer hell. Where instead of ...
7 years, 7 months ago (2013-05-06 19:33:46 UTC) #5
abarth-chromium
On 2013/05/06 17:43:16, kbr wrote: > We don't want to invent a completely new way ...
7 years, 7 months ago (2013-05-06 19:42:47 UTC) #6
bajones
@abarth: I've refactored the Settings notification code to be a more generic "SettingsChanged" notifier rather ...
7 years, 7 months ago (2013-05-06 20:24:22 UTC) #7
Ken Russell (switch to Gerrit)
On 2013/05/06 19:42:47, abarth wrote: > On 2013/05/06 17:43:16, kbr wrote: > > Talking with ...
7 years, 7 months ago (2013-05-06 20:39:40 UTC) #8
jamesr
The linked bug description makes me think that we should be losing the WebGL context ...
7 years, 7 months ago (2013-05-06 20:41:56 UTC) #9
Ken Russell (switch to Gerrit)
On 2013/05/06 20:41:56, jamesr wrote: > The linked bug description makes me think that we ...
7 years, 7 months ago (2013-05-06 20:49:39 UTC) #10
abarth-chromium
This approach seems like it won't scale very well. If we have N settings, each ...
7 years, 7 months ago (2013-05-06 21:58:30 UTC) #11
abarth-chromium
Ok, here's what I think we should do: 1) Return to the approach of patchset ...
7 years, 7 months ago (2013-05-06 22:06:09 UTC) #12
Ken Russell (switch to Gerrit)
> This approach seems like it won't scale very well. If we have N settings, ...
7 years, 7 months ago (2013-05-06 22:12:22 UTC) #13
bajones
https://codereview.chromium.org/14840015/diff/8001/Source/core/html/canvas/WebGLRenderingContext.cpp File Source/core/html/canvas/WebGLRenderingContext.cpp (right): https://codereview.chromium.org/14840015/diff/8001/Source/core/html/canvas/WebGLRenderingContext.cpp#newcode5502 Source/core/html/canvas/WebGLRenderingContext.cpp:5502: if(m_multisamplingAllowed != enabled) { On 2013/05/06 22:12:22, kbr wrote: ...
7 years, 7 months ago (2013-05-06 22:44:13 UTC) #14
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/14840015/diff/8001/Source/core/platform/graphics/gpu/DrawingBuffer.cpp File Source/core/platform/graphics/gpu/DrawingBuffer.cpp (left): https://codereview.chromium.org/14840015/diff/8001/Source/core/platform/graphics/gpu/DrawingBuffer.cpp#oldcode86 Source/core/platform/graphics/gpu/DrawingBuffer.cpp:86: bool multisampleSupported = extensions->maySupportMultisampling() On 2013/05/06 22:44:14, bajones wrote: ...
7 years, 7 months ago (2013-05-07 00:33:22 UTC) #15
bajones
Alright, back to a multisampling-specific observer with some feedback addressed.
7 years, 7 months ago (2013-05-07 21:45:59 UTC) #16
abarth-chromium
https://codereview.chromium.org/14840015/diff/27001/Source/core/html/canvas/WebGLRenderingContext.h File Source/core/html/canvas/WebGLRenderingContext.h (right): https://codereview.chromium.org/14840015/diff/27001/Source/core/html/canvas/WebGLRenderingContext.h#newcode777 Source/core/html/canvas/WebGLRenderingContext.h:777: class WebGLMultisamplingChangedObserver : public Page::MultisamplingChangedObserver, public RefCounted<WebGLMultisamplingChangedObserver> { Why ...
7 years, 7 months ago (2013-05-07 22:10:58 UTC) #17
Ken Russell (switch to Gerrit)
This looks pretty good to me overall, but a few issues. https://codereview.chromium.org/14840015/diff/27001/Source/core/html/canvas/WebGLRenderingContext.cpp File Source/core/html/canvas/WebGLRenderingContext.cpp (right): ...
7 years, 7 months ago (2013-05-08 02:17:02 UTC) #18
bajones
Addressed kbr's feedback and refactored the WebGLRenderingContext to be the MultisampleChangedObserver as he suggested offline.
7 years, 7 months ago (2013-05-09 00:02:59 UTC) #19
Ken Russell (switch to Gerrit)
I much prefer the structure in this patch to the previous one. LGTM https://codereview.chromium.org/14840015/diff/33008/Source/core/html/canvas/WebGLRenderingContext.cpp File ...
7 years, 7 months ago (2013-05-09 00:17:13 UTC) #20
bajones
On 2013/05/09 00:17:13, kbr wrote: > I much prefer the structure in this patch to ...
7 years, 7 months ago (2013-05-09 05:09:14 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bajones@chromium.org/14840015/39001
7 years, 7 months ago (2013-05-09 17:32:53 UTC) #22
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=4866
7 years, 7 months ago (2013-05-09 18:35:45 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bajones@chromium.org/14840015/39001
7 years, 7 months ago (2013-05-09 19:32:01 UTC) #24
commit-bot: I haz the power
Retried try job too often on linux_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_layout_rel&number=7349
7 years, 7 months ago (2013-05-09 20:08:43 UTC) #25
Ken Russell (switch to Gerrit)
bajones, have you run the layout tests locally with your change? It's suspicious that the ...
7 years, 7 months ago (2013-05-09 20:59:31 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bajones@chromium.org/14840015/51001
7 years, 7 months ago (2013-05-10 17:30:14 UTC) #27
commit-bot: I haz the power
Retried try job too often on linux_layout for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_layout&number=1812
7 years, 7 months ago (2013-05-10 20:31:15 UTC) #28
Ken Russell (switch to Gerrit)
LGTM, one minor comment https://chromiumcodereview.appspot.com/14840015/diff/51001/Source/core/html/canvas/WebGLRenderingContext.cpp File Source/core/html/canvas/WebGLRenderingContext.cpp (right): https://chromiumcodereview.appspot.com/14840015/diff/51001/Source/core/html/canvas/WebGLRenderingContext.cpp#newcode454 Source/core/html/canvas/WebGLRenderingContext.cpp:454: GraphicsContext3D::Attributes adjustAttributes(const GraphicsContext3D::Attributes attributes, Settings* ...
7 years, 7 months ago (2013-05-11 00:21:15 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bajones@chromium.org/14840015/66001
7 years, 7 months ago (2013-05-13 16:54:54 UTC) #30
commit-bot: I haz the power
7 years, 7 months ago (2013-05-13 17:27:55 UTC) #31
Message was sent while issue was closed.
Change committed as 150231

Powered by Google App Engine
This is Rietveld 408576698