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

Unified Diff: ui/gfx/gl/gl_context.cc

Issue 8491043: Allow linker initialization of lazy instance (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix CrOS Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/gfx/gl/gl_context.cc
diff --git a/ui/gfx/gl/gl_context.cc b/ui/gfx/gl/gl_context.cc
index b4025d73de5f984eec067475d22f3c74a70e00e6..43eec7cbe948db6a42ea1c3f8dbb7118fce4c1b0 100644
--- a/ui/gfx/gl/gl_context.cc
+++ b/ui/gfx/gl/gl_context.cc
@@ -20,7 +20,7 @@ namespace {
base::LazyInstance<
base::ThreadLocalPointer<GLContext>,
base::LeakyLazyInstanceTraits<base::ThreadLocalPointer<GLContext> > >
- current_context_(base::LINKER_INITIALIZED);
+ current_context_ = LINKER_ZERO_INITIALIZED;
} // namespace
GLContext::GLContext(GLShareGroup* share_group) : share_group_(share_group) {

Powered by Google App Engine
This is Rietveld 408576698