OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/renderer/render_thread_impl.h" | 5 #include "content/renderer/render_thread_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 #include <map> | 9 #include <map> |
10 #include <vector> | 10 #include <vector> |
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
736 if (compositor_thread()) { | 736 if (compositor_thread()) { |
737 compositor_thread()->GetWebThread()->message_loop()->DeleteSoon( | 737 compositor_thread()->GetWebThread()->message_loop()->DeleteSoon( |
738 FROM_HERE, gpu_vda_context3d_.release()); | 738 FROM_HERE, gpu_vda_context3d_.release()); |
739 } else { | 739 } else { |
740 gpu_vda_context3d_.reset(); | 740 gpu_vda_context3d_.reset(); |
741 } | 741 } |
742 } | 742 } |
743 if (!gpu_vda_context3d_.get()) { | 743 if (!gpu_vda_context3d_.get()) { |
744 gpu_vda_context3d_.reset( | 744 gpu_vda_context3d_.reset( |
745 WebGraphicsContext3DCommandBufferImpl::CreateOffscreenContext( | 745 WebGraphicsContext3DCommandBufferImpl::CreateOffscreenContext( |
746 this, WebKit::WebGraphicsContext3D::Attributes())); | 746 this, WebKit::WebGraphicsContext3D::Attributes(), |
747 GURL("RenderThreadImpl::GetGpuVDAContext3D"))); | |
brettw
2012/07/12 14:16:43
In the places you use these fake URLs, I'd prefer
jbates
2012/07/12 17:51:13
Done.
| |
747 } | 748 } |
748 return gpu_vda_context3d_->AsWeakPtr(); | 749 return gpu_vda_context3d_->AsWeakPtr(); |
749 } | 750 } |
750 | 751 |
751 #if defined(OS_WIN) | 752 #if defined(OS_WIN) |
752 void RenderThreadImpl::PreCacheFont(const LOGFONT& log_font) { | 753 void RenderThreadImpl::PreCacheFont(const LOGFONT& log_font) { |
753 Send(new ChildProcessHostMsg_PreCacheFont(log_font)); | 754 Send(new ChildProcessHostMsg_PreCacheFont(log_font)); |
754 } | 755 } |
755 | 756 |
756 void RenderThreadImpl::ReleaseCachedFonts() { | 757 void RenderThreadImpl::ReleaseCachedFonts() { |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1024 | 1025 |
1025 scoped_refptr<base::MessageLoopProxy> | 1026 scoped_refptr<base::MessageLoopProxy> |
1026 RenderThreadImpl::GetFileThreadMessageLoopProxy() { | 1027 RenderThreadImpl::GetFileThreadMessageLoopProxy() { |
1027 DCHECK(message_loop() == MessageLoop::current()); | 1028 DCHECK(message_loop() == MessageLoop::current()); |
1028 if (!file_thread_.get()) { | 1029 if (!file_thread_.get()) { |
1029 file_thread_.reset(new base::Thread("Renderer::FILE")); | 1030 file_thread_.reset(new base::Thread("Renderer::FILE")); |
1030 file_thread_->Start(); | 1031 file_thread_->Start(); |
1031 } | 1032 } |
1032 return file_thread_->message_loop_proxy(); | 1033 return file_thread_->message_loop_proxy(); |
1033 } | 1034 } |
OLD | NEW |