#include <window_surface.h>
Definition at line 19 of file window_surface.h.
◆ WindowSurface()
WindowSurface::WindowSurface |
( |
EGLDisplay |
display, |
|
|
EGLContext |
context, |
|
|
EGLSurface |
surface, |
|
|
size_t |
width, |
|
|
size_t |
height |
|
) |
| |
Definition at line 13 of file window_surface.cc.
Surface(EGLDisplay display, EGLContext context, EGLSurface surface)
virtual size_t height() const
virtual size_t width() const
◆ height()
size_t WindowSurface::height |
( |
| ) |
const |
|
virtual |
◆ SetVSyncEnabled()
bool WindowSurface::SetVSyncEnabled |
( |
bool |
enabled | ) |
|
|
virtual |
Definition at line 20 of file window_surface.cc.
20 {
22
23 if (::eglSwapInterval(
display_, enabled ? 1 : 0) != EGL_TRUE) {
25 return false;
26 }
27
28 vsync_enabled_ = enabled;
29 return true;
30}
virtual bool IsCurrent() const
#define FML_DCHECK(condition)
◆ vsync_enabled()
bool WindowSurface::vsync_enabled |
( |
| ) |
const |
|
virtual |
◆ width()
size_t WindowSurface::width |
( |
| ) |
const |
|
virtual |
The documentation for this class was generated from the following files: