| Flutter Impeller |

description_gles.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_RENDERER_BACKEND_GLES_DESCRIPTION_GLES_H_
6 #define FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_DESCRIPTION_GLES_H_
7
8 #include <set>
9 #include <string>
10
11 #include "impeller/base/version.h"
12
13 namespace impeller {
14
15 class ProcTableGLES;
16
17 class DescriptionGLES {
18 public:
19 explicit DescriptionGLES(const ProcTableGLES& gl);
20
21 ~DescriptionGLES();
22
23 bool IsValid() const;
24
25 bool IsES() const;
26
27 std::string GetString() const;
28
29 Version GetGlVersion() const;
30
31 bool HasExtension(const std::string& ext) const;
32
33 /// @brief Returns whether GLES includes the debug extension.
34 bool HasDebugExtension() const;
35
36 bool IsANGLE() const;
37
38 private:
39 Version gl_version_;
40 Version sl_version_;
41 bool is_es_ = true;
42 std::string vendor_;
43 std::string renderer_;
44 std::string gl_version_string_;
45 std::string sl_version_string_;
46 std::set<std::string> extensions_;
47 bool is_angle_ = false;
48 bool is_valid_ = false;
49
50 DescriptionGLES(const DescriptionGLES&) = delete;
51
52 DescriptionGLES& operator=(const DescriptionGLES&) = delete;
53 };
54
55 } // namespace impeller
56
57 #endif // FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_DESCRIPTION_GLES_H_
impeller::DescriptionGLES::IsES
bool IsES() const
Definition: description_gles.cc:168
impeller::DescriptionGLES::DescriptionGLES
DescriptionGLES(const ProcTableGLES &gl)
Definition: description_gles.cc:82
version.h
impeller::Version
Definition: version.h:16
impeller::DescriptionGLES
Definition: description_gles.h:17
impeller::DescriptionGLES::IsValid
bool IsValid() const
Definition: description_gles.cc:125
impeller::ProcTableGLES
Definition: proc_table_gles.h:226
impeller::DescriptionGLES::IsANGLE
bool IsANGLE() const
Definition: description_gles.cc:172
impeller::DescriptionGLES::GetGlVersion
Version GetGlVersion() const
Definition: description_gles.cc:164
impeller::DescriptionGLES::GetString
std::string GetString() const
Definition: description_gles.cc:129
impeller::DescriptionGLES::~DescriptionGLES
~DescriptionGLES()
impeller::DescriptionGLES::HasDebugExtension
bool HasDebugExtension() const
Returns whether GLES includes the debug extension.
Definition: description_gles.cc:180
impeller::DescriptionGLES::HasExtension
bool HasExtension(const std::string &ext) const
Definition: description_gles.cc:176
impeller
Definition: allocation.cc:12