Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
surface.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter 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#ifndef FLUTTER_IMPELLER_TOOLKIT_EGL_SURFACE_H_
6#define FLUTTER_IMPELLER_TOOLKIT_EGL_SURFACE_H_
7
8#include "flutter/fml/macros.h"
10
11namespace impeller {
12namespace egl {
13
14class Surface {
15 public:
16 Surface(EGLDisplay display, EGLSurface surface);
17
18 ~Surface();
19
20 bool IsValid() const;
21
22 const EGLSurface& GetHandle() const;
23
24 bool Present() const;
25
26 private:
27 EGLDisplay display_ = EGL_NO_DISPLAY;
28 EGLSurface surface_ = EGL_NO_SURFACE;
29
30 Surface(const Surface&) = delete;
31
32 Surface& operator=(const Surface&) = delete;
33};
34
35} // namespace egl
36} // namespace impeller
37
38#endif // FLUTTER_IMPELLER_TOOLKIT_EGL_SURFACE_H_
bool IsValid() const
Definition surface.cc:25
const EGLSurface & GetHandle() const
Definition surface.cc:21
bool Present() const
Definition surface.cc:29
VkSurfaceKHR surface
Definition main.cc:49