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

Side by Side Diff: ui/ozone/platform/x11/x11_surface_factory.cc

Issue 1723303002: Implement GLX for Ozone X11. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase/refactor. Created 4 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/ozone/platform/x11/x11_surface_factory.h" 5 #include "ui/ozone/platform/x11/x11_surface_factory.h"
6 6
7 #include <X11/Xlib.h> 7 #include <X11/Xlib.h>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "third_party/khronos/EGL/egl.h" 10 #include "third_party/khronos/EGL/egl.h"
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 bool X11SurfaceFactory::LoadEGLGLES2Bindings( 123 bool X11SurfaceFactory::LoadEGLGLES2Bindings(
124 AddGLLibraryCallback add_gl_library, 124 AddGLLibraryCallback add_gl_library,
125 SetGLGetProcAddressProcCallback set_gl_get_proc_address) { 125 SetGLGetProcAddressProcCallback set_gl_get_proc_address) {
126 return LoadDefaultEGLGLES2Bindings(add_gl_library, set_gl_get_proc_address); 126 return LoadDefaultEGLGLES2Bindings(add_gl_library, set_gl_get_proc_address);
127 } 127 }
128 128
129 intptr_t X11SurfaceFactory::GetNativeDisplay() { 129 intptr_t X11SurfaceFactory::GetNativeDisplay() {
130 return reinterpret_cast<intptr_t>(gfx::GetXDisplay()); 130 return reinterpret_cast<intptr_t>(gfx::GetXDisplay());
131 } 131 }
132 132
133 bool X11SurfaceFactory::SupportsGLX() {
134 return true;
135 }
136
133 } // namespace ui 137 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698