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

Issue 687533005: Enforce context refrence guards in WebGL extensions. (Closed)

Created:
6 years, 1 month ago by bajones
Modified:
6 years, 1 month ago
CC:
aandrey+blink_chromium.org, blink-reviews, blink-reviews-html_chromium.org, Rik, dglazkov+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Enforce context refrence guards in WebGL extensions. It appears that in some cases if an extension object outlives the context it was created with that context could be GCed out from under it mid-function. This new pattern enforces a scoped ref count of the associated canvas any time the context is used by an extension. BUG=429478 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185069

Patch Set 1 #

Total comments: 2

Patch Set 2 : Switched to using RefPtr #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -45 lines) Patch
M Source/core/html/canvas/ANGLEInstancedArrays.cpp View 1 chunk +9 lines, -6 lines 0 comments Download
M Source/core/html/canvas/OESVertexArrayObject.cpp View 1 chunk +20 lines, -16 lines 0 comments Download
M Source/core/html/canvas/WebGLDebugShaders.cpp View 1 chunk +4 lines, -3 lines 0 comments Download
M Source/core/html/canvas/WebGLDrawBuffers.cpp View 1 chunk +11 lines, -10 lines 0 comments Download
M Source/core/html/canvas/WebGLExtension.h View 1 3 chunks +21 lines, -6 lines 0 comments Download
M Source/core/html/canvas/WebGLExtension.cpp View 1 1 chunk +15 lines, -0 lines 0 comments Download
M Source/core/html/canvas/WebGLLoseContext.cpp View 1 chunk +6 lines, -4 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
bajones
PTAL
6 years, 1 month ago (2014-11-10 18:16:57 UTC) #2
Ken Russell (switch to Gerrit)
The call sites all look good. One concern about the implementation. Have you been able ...
6 years, 1 month ago (2014-11-10 18:36:43 UTC) #3
bajones
On 2014/11/10 at 18:36:43, kbr wrote: > Have you been able to verify locally that ...
6 years, 1 month ago (2014-11-10 19:57:37 UTC) #4
Ken Russell (switch to Gerrit)
Thanks for updating this. LGTM
6 years, 1 month ago (2014-11-10 21:07:12 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/687533005/20001
6 years, 1 month ago (2014-11-10 21:13:32 UTC) #7
commit-bot: I haz the power
6 years, 1 month ago (2014-11-10 22:15:14 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as 185069

Powered by Google App Engine
This is Rietveld 408576698