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
#pragma once
6
7
#include "flutter/fml/macros.h"
8
#include "
impeller/toolkit/egl/egl.h
"
9
10
namespace
impeller
{
11
namespace
egl {
12
13
class
Surface
{
14
public
:
15
Surface
(EGLDisplay display, EGLSurface surface);
16
17
~Surface
();
18
19
bool
IsValid
()
const
;
20
21
const
EGLSurface&
GetHandle
()
const
;
22
23
bool
Present
()
const
;
24
25
private
:
26
EGLDisplay display_ = EGL_NO_DISPLAY;
27
EGLSurface surface_ = EGL_NO_SURFACE;
28
29
FML_DISALLOW_COPY_AND_ASSIGN(
Surface
);
30
};
31
32
}
// namespace egl
33
}
// namespace impeller
egl.h
impeller::egl::Surface
Definition:
surface.h:13
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
impeller
toolkit
egl
surface.h
Generated by
1.8.17