| 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 bool HasExtension(const std::string& ext) const;
31
32 /// @brief Returns whether GLES includes the debug extension.
33 bool HasDebugExtension() const;
34
35 private:
36 Version gl_version_;
37 Version sl_version_;
38 bool is_es_ = true;
39 std::string vendor_;
40 std::string renderer_;
41 std::string gl_version_string_;
42 std::string sl_version_string_;
43 std::set<std::string> extensions_;
44 bool is_valid_ = false;
45
46 DescriptionGLES(const DescriptionGLES&) = delete;
47
48 DescriptionGLES& operator=(const DescriptionGLES&) = delete;
49 };
50
51 } // namespace impeller
52
53 #endif // FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_DESCRIPTION_GLES_H_
impeller::DescriptionGLES::IsES
bool IsES() const
Definition: description_gles.cc:159
impeller::DescriptionGLES::DescriptionGLES
DescriptionGLES(const ProcTableGLES &gl)
Definition: description_gles.cc:78
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:120
impeller::ProcTableGLES
Definition: proc_table_gles.h:217
impeller::DescriptionGLES::GetString
std::string GetString() const
Definition: description_gles.cc:124
impeller::DescriptionGLES::~DescriptionGLES
~DescriptionGLES()
impeller::DescriptionGLES::HasDebugExtension
bool HasDebugExtension() const
Returns whether GLES includes the debug extension.
Definition: description_gles.cc:167
impeller::DescriptionGLES::HasExtension
bool HasExtension(const std::string &ext) const
Definition: description_gles.cc:163
impeller
Definition: aiks_context.cc:10