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

Unified Diff: content/browser/gpu/gpu_process_host.cc

Issue 1575293002: Allow GPU channels to be created when using SwiftShader (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Pass correct GPUInfo Created 4 years, 11 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
« no previous file with comments | « content/browser/gpu/gpu_process_host.h ('k') | content/browser/renderer_host/gpu_message_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_process_host.cc
diff --git a/content/browser/gpu/gpu_process_host.cc b/content/browser/gpu/gpu_process_host.cc
index b97057871f71fff84dc7c8c58109718e59b0e8cb..9916e70830a25592388c3e772149afd0fd57253a 100644
--- a/content/browser/gpu/gpu_process_host.cc
+++ b/content/browser/gpu/gpu_process_host.cc
@@ -790,6 +790,7 @@ void GpuProcessHost::DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id,
void GpuProcessHost::OnInitialized(bool result, const gpu::GPUInfo& gpu_info) {
UMA_HISTOGRAM_BOOLEAN("GPU.GPUProcessInitialized", result);
initialized_ = result;
+ gpu_info_ = gpu_info;
if (!initialized_)
GpuDataManagerImpl::GetInstance()->OnGpuProcessInitFailure();
@@ -825,8 +826,7 @@ void GpuProcessHost::OnChannelEstablished(
return;
}
- callback.Run(channel_handle,
- GpuDataManagerImpl::GetInstance()->GetGPUInfo());
+ callback.Run(channel_handle, gpu_info_);
}
void GpuProcessHost::OnCommandBufferCreated(CreateCommandBufferResult result) {
« no previous file with comments | « content/browser/gpu/gpu_process_host.h ('k') | content/browser/renderer_host/gpu_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698