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

Unified Diff: webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc

Issue 8524016: webkit: Remove 1 exit time destructor and turn on -Wexit-time-destructors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
« no previous file with comments | « webkit/glue/webkit_glue.gypi ('k') | webkit/gpu/webkit_gpu.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
diff --git a/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc b/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
index 4f8044b5d0144d2f2e45a86bd51f759da9eac612..b1ff0c7df7c81eed83d35491254df9629f0d07ed 100644
--- a/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
+++ b/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
@@ -408,7 +408,8 @@ bool GLInProcessContext::Initialize(bool onscreen,
const GURL& active_url,
gfx::GpuPreference gpu_preference) {
// Use one share group for all contexts.
- static scoped_refptr<gfx::GLShareGroup> share_group(new gfx::GLShareGroup);
+ CR_DEFINE_STATIC_LOCAL(scoped_refptr<gfx::GLShareGroup>, share_group,
+ (new gfx::GLShareGroup));
DCHECK(size.width() >= 0 && size.height() >= 0);
« no previous file with comments | « webkit/glue/webkit_glue.gypi ('k') | webkit/gpu/webkit_gpu.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698