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

Issue 7724003: Lock the initialization of the GL bindings. (Closed)

Created:
9 years, 4 months ago by jonathan.backer
Modified:
9 years, 3 months ago
CC:
chromium-reviews, apatrick_chromium
Visibility:
Public.

Description

Lock the initialization of the GL bindings. The GpuInfoCollector and CompositorGL exist on different threads in the browser process and both use the GL bindings. I've witnessed a race in the binding initialization where one thread thinks that the bindings have been initialized, but the initialization hasn't completed on the other thread, and a NULL function pointer gets dereferenced. BUG=none TEST=fixes segfault on TOUCH_UI build Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98280

Patch Set 1 #

Total comments: 1

Patch Set 2 : Widen to all Linux builds with browser compositor enabled. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -0 lines) Patch
M ui/gfx/gl/gl_implementation_linux.cc View 1 2 chunks +10 lines, -0 lines 1 comment Download

Messages

Total messages: 7 (0 generated)
jonathan.backer
The bug that this fixes reproduces consistently on my machine. I've made the change TOUCH_UI ...
9 years, 4 months ago (2011-08-24 16:48:36 UTC) #1
jonathan.backer
-apatrick@ who is out +kbr@ in his stead
9 years, 4 months ago (2011-08-24 22:01:31 UTC) #2
Ken Russell (switch to Gerrit)
If you want I will approve this as is, but it would be better to ...
9 years, 4 months ago (2011-08-25 04:19:53 UTC) #3
jonathan.backer
On 2011/08/25 04:19:53, kbr wrote: > If you want I will approve this as is, ...
9 years, 4 months ago (2011-08-25 12:59:02 UTC) #4
Ken Russell (switch to Gerrit)
OK. LGTM
9 years, 4 months ago (2011-08-25 18:32:43 UTC) #5
jam
http://codereview.chromium.org/7724003/diff/5001/ui/gfx/gl/gl_implementation_linux.cc File ui/gfx/gl/gl_implementation_linux.cc (right): http://codereview.chromium.org/7724003/diff/5001/ui/gfx/gl/gl_implementation_linux.cc#newcode50 ui/gfx/gl/gl_implementation_linux.cc:50: base::Lock g_lock; this goes against the chromium/google style guide: ...
9 years, 4 months ago (2011-08-25 20:23:33 UTC) #6
jam
9 years, 3 months ago (2011-08-29 21:00:57 UTC) #7
ping

Powered by Google App Engine
This is Rietveld 408576698