7 #include "flutter/fml/logging.h"
18 :
Surface(display, context, surface), width_(width), height_(height) {}
23 if (::eglSwapInterval(
display_, enabled ? 1 : 0) != EGL_TRUE) {
28 vsync_enabled_ = enabled;
41 return vsync_enabled_;
virtual bool IsCurrent() const
virtual bool SetVSyncEnabled(bool enabled)
virtual size_t width() const
virtual bool vsync_enabled() const
virtual size_t height() const
WindowSurface(EGLDisplay display, EGLContext context, EGLSurface surface, size_t width, size_t height)
#define WINDOWS_LOG_EGL_ERROR