OLD | NEW |
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 "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 bool X11SurfaceFactory::LoadEGLGLES2Bindings( | 124 bool X11SurfaceFactory::LoadEGLGLES2Bindings( |
125 AddGLLibraryCallback add_gl_library, | 125 AddGLLibraryCallback add_gl_library, |
126 SetGLGetProcAddressProcCallback set_gl_get_proc_address) { | 126 SetGLGetProcAddressProcCallback set_gl_get_proc_address) { |
127 return LoadDefaultEGLGLES2Bindings(add_gl_library, set_gl_get_proc_address); | 127 return LoadDefaultEGLGLES2Bindings(add_gl_library, set_gl_get_proc_address); |
128 } | 128 } |
129 | 129 |
130 intptr_t X11SurfaceFactory::GetNativeDisplay() { | 130 intptr_t X11SurfaceFactory::GetNativeDisplay() { |
131 return reinterpret_cast<intptr_t>(gfx::GetXDisplay()); | 131 return reinterpret_cast<intptr_t>(gfx::GetXDisplay()); |
132 } | 132 } |
133 | 133 |
| 134 bool X11SurfaceFactory::SupportsGLX() { |
| 135 return true; |
| 136 } |
| 137 |
134 } // namespace ui | 138 } // namespace ui |
OLD | NEW |