Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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"
13
14namespace impeller {
15
16class ProcTableGLES;
17
19 public:
20 explicit DescriptionGLES(const ProcTableGLES& gl);
21
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_
std::string GetString() const
bool HasExtension(const std::string &ext) const
bool HasDebugExtension() const
Returns whether GLES includes the debug extension.