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

Unified Diff: ui/gfx/gl/gl_surface.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_surface.cc
diff --git a/ui/gfx/gl/gl_surface.cc b/ui/gfx/gl/gl_surface.cc
index 34d44641adc6c4e5094a26ab5f82fa24e2611ddb..cb3bfe0c4ac3222f09a2a219c87757816c355486 100644
--- a/ui/gfx/gl/gl_surface.cc
+++ b/ui/gfx/gl/gl_surface.cc
@@ -20,7 +20,7 @@ namespace {
base::LazyInstance<
base::ThreadLocalPointer<GLSurface>,
base::LeakyLazyInstanceTraits<base::ThreadLocalPointer<GLSurface> > >
- current_surface_(base::LINKER_INITIALIZED);
+ current_surface_ = LINKER_ZERO_INITIALIZED;
} // namespace
// static

Powered by Google App Engine
This is Rietveld 408576698