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

Side by Side Diff: ui/gl/gl_surface_egl.h

Issue 754433003: Update from https://crrev.com/305340 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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.cc ('k') | ui/gl/gl_surface_egl.cc » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef UI_GL_GL_SURFACE_EGL_H_ 5 #ifndef UI_GL_GL_SURFACE_EGL_H_
6 #define UI_GL_GL_SURFACE_EGL_H_ 6 #define UI_GL_GL_SURFACE_EGL_H_
7 7
8 #if defined(OS_WIN) 8 #if defined(OS_WIN)
9 #include <windows.h> 9 #include <windows.h>
10 #endif 10 #endif
(...skipping 11 matching lines...) Expand all
22 22
23 // Get default EGL display for GLSurfaceEGL (differs by platform). 23 // Get default EGL display for GLSurfaceEGL (differs by platform).
24 EGLNativeDisplayType GetPlatformDefaultEGLNativeDisplay(); 24 EGLNativeDisplayType GetPlatformDefaultEGLNativeDisplay();
25 25
26 // Interface for EGL surface. 26 // Interface for EGL surface.
27 class GL_EXPORT GLSurfaceEGL : public GLSurface { 27 class GL_EXPORT GLSurfaceEGL : public GLSurface {
28 public: 28 public:
29 GLSurfaceEGL(); 29 GLSurfaceEGL();
30 30
31 // Implement GLSurface. 31 // Implement GLSurface.
32 void DestroyAndTerminateDisplay() override;
32 EGLDisplay GetDisplay() override; 33 EGLDisplay GetDisplay() override;
33 34
34 static bool InitializeOneOff(); 35 static bool InitializeOneOff();
35 static EGLDisplay GetHardwareDisplay(); 36 static EGLDisplay GetHardwareDisplay();
36 static EGLNativeDisplayType GetNativeDisplay(); 37 static EGLNativeDisplayType GetNativeDisplay();
37 38
38 // These aren't particularly tied to surfaces, but since we already 39 // These aren't particularly tied to surfaces, but since we already
39 // have the static InitializeOneOff here, it's easiest to reuse its 40 // have the static InitializeOneOff here, it's easiest to reuse its
40 // initialization guards. 41 // initialization guards.
41 static const char* GetEGLExtensions(); 42 static const char* GetEGLExtensions();
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 ~SurfacelessEGL() override; 143 ~SurfacelessEGL() override;
143 144
144 private: 145 private:
145 gfx::Size size_; 146 gfx::Size size_;
146 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL); 147 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL);
147 }; 148 };
148 149
149 } // namespace gfx 150 } // namespace gfx
150 151
151 #endif // UI_GL_GL_SURFACE_EGL_H_ 152 #endif // UI_GL_GL_SURFACE_EGL_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_surface.cc ('k') | ui/gl/gl_surface_egl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698