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

Side by Side Diff: ui/gl/gl_surface_egl_x11.cc

Issue 2136553002: Remove GetPlatformDefaultEGLNativeDisplay() function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Back to original. Created 4 years, 5 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
« no previous file with comments | « ui/gl/gl_surface_egl_win.cc ('k') | ui/gl/init/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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/gl/gl_surface_egl_x11.h" 5 #include "ui/gl/gl_surface_egl_x11.h"
6 6
7 #include "ui/events/platform/platform_event_source.h" 7 #include "ui/events/platform/platform_event_source.h"
8 #include "ui/gfx/x/x11_types.h"
9 #include "ui/gl/egl_util.h" 8 #include "ui/gl/egl_util.h"
10 9
11 extern "C" { 10 extern "C" {
12 #include <X11/Xlib.h> 11 #include <X11/Xlib.h>
13 } 12 }
14 13
15 using ui::GetLastEGLErrorString; 14 using ui::GetLastEGLErrorString;
16 using ui::PlatformEvent; 15 using ui::PlatformEvent;
17 using ui::PlatformEventSource; 16 using ui::PlatformEventSource;
18 17
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 Display* x11_display = GetNativeDisplay(); 170 Display* x11_display = GetNativeDisplay();
172 XSendEvent(x11_display, parent_window_, False, ExposureMask, &x_event); 171 XSendEvent(x11_display, parent_window_, False, ExposureMask, &x_event);
173 XFlush(x11_display); 172 XFlush(x11_display);
174 return ui::POST_DISPATCH_STOP_PROPAGATION; 173 return ui::POST_DISPATCH_STOP_PROPAGATION;
175 } 174 }
176 175
177 NativeViewGLSurfaceEGLX11::~NativeViewGLSurfaceEGLX11() { 176 NativeViewGLSurfaceEGLX11::~NativeViewGLSurfaceEGLX11() {
178 Destroy(); 177 Destroy();
179 } 178 }
180 179
181 EGLNativeDisplayType GetPlatformDefaultEGLNativeDisplay() {
182 return gfx::GetXDisplay();
183 }
184
185 } // namespace gl 180 } // namespace gl
OLDNEW
« no previous file with comments | « ui/gl/gl_surface_egl_win.cc ('k') | ui/gl/init/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698