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

Unified Diff: content/gpu/in_process_gpu_thread.cc

Issue 2347383002: X11: Use better visuals for OpenGL (Closed)
Patch Set: auto* Created 4 years, 3 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/test/gpu/page_sets/gpu_process_tests.py » ('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 c83a3a591b11857df4b56b5bf7058e7d3242fd70..c0c90888d3a8fe1a657a4122372fb0d31f269cd0 100644
--- a/content/gpu/in_process_gpu_thread.cc
+++ b/content/gpu/in_process_gpu_thread.cc
@@ -8,8 +8,10 @@
#include "build/build_config.h"
#include "content/gpu/gpu_child_thread.h"
#include "content/gpu/gpu_process.h"
+#include "gpu/config/gpu_info_collector.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"
#if defined(OS_ANDROID)
#include "base/android/jni_android.h"
@@ -48,10 +50,16 @@ void InProcessGpuThread::Init() {
gpu_process_ = new GpuProcess(io_thread_priority);
+ gpu::GPUInfo gpu_info;
+ if (!gl::init::InitializeGLOneOff())
+ VLOG(1) << "gl::init::InitializeGLOneOff failed";
+ else
+ gpu::CollectContextGraphicsInfo(&gpu_info);
+
// The process object takes ownership of the thread object, so do not
// save and delete the pointer.
GpuChildThread* child_thread =
- new GpuChildThread(params_, gpu_memory_buffer_factory_.get());
+ new GpuChildThread(params_, gpu_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/test/gpu/page_sets/gpu_process_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698