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); |