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