Flutter Engine
The Flutter Engine
config.cc
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
6
7#include <utility>
8
9namespace impeller {
10namespace egl {
11
12Config::Config(ConfigDescriptor descriptor, EGLConfig config)
13 : desc_(descriptor), config_(config) {}
14
15Config::~Config() = default;
16
18 return desc_;
19}
20
21const EGLConfig& Config::GetHandle() const {
22 return config_;
23}
24
25bool Config::IsValid() const {
26 return config_ != nullptr;
27}
28
29} // namespace egl
30} // namespace impeller
const ConfigDescriptor & GetDescriptor() const
Definition: config.cc:17
bool IsValid() const
Definition: config.cc:25
Config(ConfigDescriptor descriptor, EGLConfig config)
Definition: config.cc:12
const EGLConfig & GetHandle() const
Definition: config.cc:21