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

Unified 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: Move for loop post_init_tasks_ from Initialize to InitializeImpl. And add a cc unit 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 side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698