| 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
5 #include "impeller/toolkit/egl/config.h"
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
17 const ConfigDescriptor& Config::GetDescriptor() const {
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
impeller::egl::Config::Config
Config(ConfigDescriptor descriptor, EGLConfig config)
Definition: config.cc:12
impeller::egl::Config::IsValid
bool IsValid() const
Definition: config.cc:25
impeller::egl::Config::~Config
~Config()
impeller::egl::Config::GetHandle
const EGLConfig & GetHandle() const
Definition: config.cc:21
impeller::egl::Config::GetDescriptor
const ConfigDescriptor & GetDescriptor() const
Definition: config.cc:17
desc_
std::optional< PipelineDescriptor > desc_
Definition: content_context.cc:77
impeller
Definition: allocation.cc:12
impeller::egl::ConfigDescriptor
Definition: config.h:46
config.h