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

Unified Diff: ui/gl/gl_context.h

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 | « chrome/browser/android/vr_shell/vr_shell_gl.cc ('k') | ui/gl/gl_context_egl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_context.h
diff --git a/ui/gl/gl_context.h b/ui/gl/gl_context.h
index fc1192af76515366e9322374d6376dcfc3d54c1d..e72b1ecf817531e0e6a536042cad622fe35e933d 100644
--- a/ui/gl/gl_context.h
+++ b/ui/gl/gl_context.h
@@ -39,6 +39,12 @@ struct GLVersionInfo;
class RealGLApi;
class TraceGLApi;
+enum ContextPriority {
+ ContextPriorityLow,
+ ContextPriorityMedium,
+ ContextPriorityHigh
+};
+
struct GLContextAttribs {
GpuPreference gpu_preference = PreferIntegratedGpu;
bool bind_generates_resource = true;
@@ -46,6 +52,7 @@ struct GLContextAttribs {
bool global_texture_share_group = false;
int client_major_es_version = 3;
int client_minor_es_version = 0;
+ ContextPriority context_priority = ContextPriorityMedium;
};
// Encapsulates an OpenGL context, hiding platform specific management.
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell_gl.cc ('k') | ui/gl/gl_context_egl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698