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

Side by Side Diff: content/renderer/render_thread_impl.cc

Issue 1547793004: Make gpu black list work again on Linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clear existing gpu testing switches before each test Created 4 years, 10 months 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 unified diff | Download patch
OLDNEW
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 <utility> 10 #include <utility>
(...skipping 1855 matching lines...) Expand 10 before | Expand all | Expand 10 after
1866 GpuChannelHost* RenderThreadImpl::GetGpuChannel() { 1866 GpuChannelHost* RenderThreadImpl::GetGpuChannel() {
1867 if (!gpu_channel_.get()) 1867 if (!gpu_channel_.get())
1868 return NULL; 1868 return NULL;
1869 1869
1870 if (gpu_channel_->IsLost()) 1870 if (gpu_channel_->IsLost())
1871 return NULL; 1871 return NULL;
1872 1872
1873 return gpu_channel_.get(); 1873 return gpu_channel_.get();
1874 } 1874 }
1875 1875
1876 bool RenderThreadImpl::HasGpuProcess() {
1877 bool hasGpuProcess = false;
1878 if (!Send(new GpuHostMsg_HasGpuProcess(&hasGpuProcess)))
1879 return false;
1880
1881 return hasGpuProcess;
1882 }
1883
1876 #if defined(ENABLE_PLUGINS) 1884 #if defined(ENABLE_PLUGINS)
1877 void RenderThreadImpl::OnPurgePluginListCache(bool reload_pages) { 1885 void RenderThreadImpl::OnPurgePluginListCache(bool reload_pages) {
1878 EnsureWebKitInitialized(); 1886 EnsureWebKitInitialized();
1879 // The call below will cause a GetPlugins call with refresh=true, but at this 1887 // The call below will cause a GetPlugins call with refresh=true, but at this
1880 // point we already know that the browser has refreshed its list, so disable 1888 // point we already know that the browser has refreshed its list, so disable
1881 // refresh temporarily to prevent each renderer process causing the list to be 1889 // refresh temporarily to prevent each renderer process causing the list to be
1882 // regenerated. 1890 // regenerated.
1883 blink_platform_impl_->set_plugin_refresh_allowed(false); 1891 blink_platform_impl_->set_plugin_refresh_allowed(false);
1884 blink::resetPluginCache(reload_pages); 1892 blink::resetPluginCache(reload_pages);
1885 blink_platform_impl_->set_plugin_refresh_allowed(true); 1893 blink_platform_impl_->set_plugin_refresh_allowed(true);
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
2124 } 2132 }
2125 2133
2126 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() { 2134 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() {
2127 size_t erased = 2135 size_t erased =
2128 RenderThreadImpl::current()->pending_render_frame_connects_.erase( 2136 RenderThreadImpl::current()->pending_render_frame_connects_.erase(
2129 routing_id_); 2137 routing_id_);
2130 DCHECK_EQ(1u, erased); 2138 DCHECK_EQ(1u, erased);
2131 } 2139 }
2132 2140
2133 } // namespace content 2141 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698