| Flutter Impeller |

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"
9 #include "impeller/toolkit/egl/egl.h"
10
11 namespace impeller {
12 namespace egl {
13
14 class 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_
egl.h
impeller::egl::Surface
Definition: surface.h:14
impeller::egl::Surface::Surface
Surface(EGLDisplay display, EGLSurface surface)
Definition: surface.cc:10
impeller::egl::Surface::IsValid
bool IsValid() const
Definition: surface.cc:25
impeller::egl::Surface::Present
bool Present() const
Definition: surface.cc:29
impeller::egl::Surface::GetHandle
const EGLSurface & GetHandle() const
Definition: surface.cc:21
impeller::egl::Surface::~Surface
~Surface()
Definition: surface.cc:13
impeller
Definition: aiks_context.cc:10