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

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: . 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 b9a5b004e429575798bcf3cd699a19351f557b90..3f56e714e1d0c88f9718dbad3118a2db81d5f4c9 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,
apatrick_chromium 2011/11/11 20:05:23 I think I missed the memo. Why?
Nico 2011/11/11 20:07:19 http://groups.google.com/a/chromium.org/group/chro
+ (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