Chromium Code Reviews| Index: content/renderer/render_thread_impl.cc |
| diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc |
| index 3975856b9b0a14cfd62120fd9ddbb8ec296a849c..930d476afda8fa9d79d03ba4ba7c59b357e7f8dc 100644 |
| --- a/content/renderer/render_thread_impl.cc |
| +++ b/content/renderer/render_thread_impl.cc |
| @@ -1177,10 +1177,10 @@ RenderThreadImpl::SharedMainThreadContextProvider() { |
| shared_main_thread_contexts_ = ContextProviderCommandBuffer::Create( |
| CreateOffscreenContext3d(), "Offscreen-MainThread"); |
| } |
| + if (shared_main_thread_contexts_ && |
| + !shared_main_thread_contexts_->BindToCurrentThread()) |
|
dshwang
2014/08/15 14:54:01
BindToCurrentThread() should be called one time wh
danakj
2014/08/15 15:28:44
This seems like a separate change, can you do this
dshwang
2014/08/15 16:02:32
Ok, I'll separate it on another CL.
|
| + shared_main_thread_contexts_ = NULL; |
| } |
| - if (shared_main_thread_contexts_ && |
| - !shared_main_thread_contexts_->BindToCurrentThread()) |
| - shared_main_thread_contexts_ = NULL; |
| return shared_main_thread_contexts_; |
| } |