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