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

Unified Diff: chrome/browser/android/vr_shell/vr_shell_gl.cc

Issue 2902863002: Implement EGL context priority if supported, use in VrShell (Closed)
Patch Set: Created 3 years, 7 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 | « no previous file | ui/gl/gl_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/vr_shell_gl.cc
diff --git a/chrome/browser/android/vr_shell/vr_shell_gl.cc b/chrome/browser/android/vr_shell/vr_shell_gl.cc
index 452f39debd789433d5143a72349ad28b42af476d..bce31e603bd51ab49567774335607577eb5454c1 100644
--- a/chrome/browser/android/vr_shell/vr_shell_gl.cc
+++ b/chrome/browser/android/vr_shell/vr_shell_gl.cc
@@ -277,8 +277,10 @@ void VrShellGl::InitializeGl(gfx::AcceleratedWidget window) {
ForceExitVr();
return;
}
- context_ = gl::init::CreateGLContext(nullptr, surface_.get(),
- gl::GLContextAttribs());
+
+ gl::GLContextAttribs attribs;
+ attribs.context_priority = gl::ContextPriorityHigh;
+ context_ = gl::init::CreateGLContext(nullptr, surface_.get(), attribs);
if (!context_.get()) {
LOG(ERROR) << "gl::init::CreateGLContext failed";
ForceExitVr();
« no previous file with comments | « no previous file | ui/gl/gl_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698