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 ef3f392fbef069fd8c93a45c408b51589c59f162..95a6c639bec521a9f8359d63b23766d1a01de514 100644 |
| --- a/content/renderer/render_thread_impl.cc |
| +++ b/content/renderer/render_thread_impl.cc |
| @@ -1914,6 +1914,14 @@ GpuChannelHost* RenderThreadImpl::GetGpuChannel() { |
| return gpu_channel_.get(); |
| } |
| +bool RenderThreadImpl::HasGpuProcess() { |
| + bool hasGpuProcess = false; |
|
jam
2016/02/10 18:32:33
no reason to add this in RenderThreadImpl just for
|
| + if (!Send(new GpuHostMsg_HasGpuProcess(&hasGpuProcess))) |
| + return false; |
| + |
| + return hasGpuProcess; |
| +} |
| + |
| #if defined(ENABLE_PLUGINS) |
| void RenderThreadImpl::OnPurgePluginListCache(bool reload_pages) { |
| EnsureWebKitInitialized(); |