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

Unified Diff: content/gpu/in_process_gpu_thread.cc

Issue 2654993004: Move GPU blacklist calculation to GPU proc (Closed)
Patch Set: fix win clang build Created 3 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
« no previous file with comments | « content/gpu/gpu_main.cc ('k') | content/public/browser/gpu_data_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/in_process_gpu_thread.cc
diff --git a/content/gpu/in_process_gpu_thread.cc b/content/gpu/in_process_gpu_thread.cc
index c0c90888d3a8fe1a657a4122372fb0d31f269cd0..eeb6811d0a717bd4e19418fa5682cde2f1ec4593 100644
--- a/content/gpu/in_process_gpu_thread.cc
+++ b/content/gpu/in_process_gpu_thread.cc
@@ -9,6 +9,7 @@
#include "content/gpu/gpu_child_thread.h"
#include "content/gpu/gpu_process.h"
#include "gpu/config/gpu_info_collector.h"
+#include "gpu/config/gpu_util.h"
#include "gpu/ipc/common/gpu_memory_buffer_support.h"
#include "gpu/ipc/service/gpu_memory_buffer_factory.h"
#include "ui/gl/init/gl_factory.h"
@@ -56,10 +57,13 @@ void InProcessGpuThread::Init() {
else
gpu::CollectContextGraphicsInfo(&gpu_info);
+ gpu::GpuFeatureInfo gpu_feature_info =
+ gpu::GetGpuFeatureInfo(gpu_info, *base::CommandLine::ForCurrentProcess());
+
// The process object takes ownership of the thread object, so do not
// save and delete the pointer.
- GpuChildThread* child_thread =
- new GpuChildThread(params_, gpu_info, gpu_memory_buffer_factory_.get());
+ GpuChildThread* child_thread = new GpuChildThread(
+ params_, gpu_info, gpu_feature_info, gpu_memory_buffer_factory_.get());
// Since we are in the browser process, use the thread start time as the
// process start time.
« no previous file with comments | « content/gpu/gpu_main.cc ('k') | content/public/browser/gpu_data_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698