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

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

Issue 1602173005: Add PlatformWindow/Event related code for Ozone X11. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes for comments from spang. Created 4 years, 11 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "ui/ozone/platform/x11/x11_surface_factory.h"
6
7 #include <X11/Xlib.h>
8
9 #include <utility>
10
11 #include "base/macros.h"
12 #include "third_party/khronos/EGL/egl.h"
13 #include "ui/gfx/x/x11_types.h"
14 #include "ui/ozone/common/egl_util.h"
15
16 namespace ui {
17
18 X11SurfaceFactory::X11SurfaceFactory(
19 scoped_refptr<X11WindowManagerOzone> window_manager)
20 : window_manager_(window_manager) {}
21
22 X11SurfaceFactory::~X11SurfaceFactory() {}
23
24 bool X11SurfaceFactory::LoadEGLGLES2Bindings(
25 AddGLLibraryCallback add_gl_library,
26 SetGLGetProcAddressProcCallback set_gl_get_proc_address) {
27 return LoadDefaultEGLGLES2Bindings(add_gl_library, set_gl_get_proc_address);
28 }
29
30 intptr_t X11SurfaceFactory::GetNativeDisplay() {
31 return reinterpret_cast<intptr_t>(gfx::GetXDisplay());
32 }
33
34 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698