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

Unified Diff: ui/gl/gl_context_wgl.cc

Issue 2480373002: Refactor context creation parameters into a struct. (Closed)
Patch Set: 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: ui/gl/gl_context_wgl.cc
diff --git a/ui/gl/gl_context_wgl.cc b/ui/gl/gl_context_wgl.cc
index 51b140b4907bc007216e60e19ed6a4d3d4e2e2f5..6e2f533a2cb7afc2e55c8d1a6a081af76ca1760d 100644
--- a/ui/gl/gl_context_wgl.cc
+++ b/ui/gl/gl_context_wgl.cc
@@ -19,8 +19,8 @@ GLContextWGL::GLContextWGL(GLShareGroup* share_group)
: GLContextReal(share_group), context_(nullptr) {
}
-bool GLContextWGL::Initialize(
- GLSurface* compatible_surface, GpuPreference gpu_preference) {
+bool GLContextWGL::Initialize(GLSurface* compatible_surface,
+ const GLContextAttribs& attribs) {
// Get the handle of another initialized context in the share group _before_
// setting context_. Otherwise this context will be considered initialized
// and could potentially be returned by GetHandle.
« ui/gl/gl_context_cgl.cc ('K') | « ui/gl/gl_context_wgl.h ('k') | ui/gl/gl_surface_egl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698