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

Issue 224723021: Do not retain zombie CGL contexts (Closed)

Created:
6 years, 8 months ago by ccameron
Modified:
6 years, 8 months ago
Reviewers:
piman
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Do not retain zombie CGL contexts There are reports of failures when releasing the previous_context_ in ScopedCGLSetCurrentContext's destructor. The exact reason is unknown, but test applications have shown that it is possible for the current context to have a reference count of zero (in which case, the retain before setting the new context current does nothing, and the release after the new context is not current anymore may crash). If the previous context has a zero reference count, do not retain and release it, rather, set the context to NULL after the call completes. BUG=358473 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=262510

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -2 lines) Patch
M ui/gl/scoped_cgl.cc View 1 chunk +8 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
ccameron
Small fix, ptal. I'm half-tempted to simply disable nesting these objects, since they've proven to ...
6 years, 8 months ago (2014-04-07 20:47:01 UTC) #1
piman
lgtm
6 years, 8 months ago (2014-04-07 20:51:21 UTC) #2
ccameron
The CQ bit was checked by ccameron@chromium.org
6 years, 8 months ago (2014-04-08 17:52:45 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/224723021/1
6 years, 8 months ago (2014-04-08 17:52:50 UTC) #4
commit-bot: I haz the power
6 years, 8 months ago (2014-04-08 21:36:49 UTC) #5
Message was sent while issue was closed.
Change committed as 262510

Powered by Google App Engine
This is Rietveld 408576698