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

Unified Diff: media/gpu/rendering_helper.cc

Issue 2480373002: Refactor context creation parameters into a struct. (Closed)
Patch Set: address piman's comments Created 4 years, 1 month 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: media/gpu/rendering_helper.cc
diff --git a/media/gpu/rendering_helper.cc b/media/gpu/rendering_helper.cc
index 959da7ce8c2c6ea02ee87e6b98ac0589d2e49894..0625ea61dfd38aaed52fbf220d94a281434dd464 100644
--- a/media/gpu/rendering_helper.cc
+++ b/media/gpu/rendering_helper.cc
@@ -350,7 +350,7 @@ void RenderingHelper::Initialize(const RenderingHelperParams& params,
screen_size_ = gl_surface_->GetSize();
gl_context_ = gl::init::CreateGLContext(nullptr, gl_surface_.get(),
- gl::PreferIntegratedGpu);
+ gl::GLContextAttribs());
CHECK(gl_context_->MakeCurrent(gl_surface_.get()));
CHECK_GT(params.window_sizes.size(), 0U);

Powered by Google App Engine
This is Rietveld 408576698