Flutter Engine
The Flutter Engine
blit_command_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_BLIT_COMMAND_GLES_H_
6#define FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_BLIT_COMMAND_GLES_H_
7
11
12namespace impeller {
13
14/// Mixin for dispatching GLES commands.
15struct BlitEncodeGLES : BackendCast<BlitEncodeGLES, BlitCommand> {
16 virtual ~BlitEncodeGLES();
17
18 virtual std::string GetLabel() const = 0;
19
20 [[nodiscard]] virtual bool Encode(const ReactorGLES& reactor) const = 0;
21};
22
24 : public BlitEncodeGLES,
27
28 std::string GetLabel() const override;
29
30 [[nodiscard]] bool Encode(const ReactorGLES& reactor) const override;
31};
32
34 : public BlitEncodeGLES,
37
38 std::string GetLabel() const override;
39
40 [[nodiscard]] bool Encode(const ReactorGLES& reactor) const override;
41};
42
44 : public BlitEncodeGLES,
47
48 std::string GetLabel() const override;
49
50 [[nodiscard]] bool Encode(const ReactorGLES& reactor) const override;
51};
52
56
57 std::string GetLabel() const override;
58
59 [[nodiscard]] bool Encode(const ReactorGLES& reactor) const override;
60};
61
62} // namespace impeller
63
64#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_BLIT_COMMAND_GLES_H_
The reactor attempts to make thread-safe usage of OpenGL ES easier to reason about.
Definition: reactor_gles.h:55
bool Encode(const ReactorGLES &reactor) const override
bool Encode(const ReactorGLES &reactor) const override
bool Encode(const ReactorGLES &reactor) const override
Mixin for dispatching GLES commands.
virtual std::string GetLabel() const =0
virtual bool Encode(const ReactorGLES &reactor) const =0
bool Encode(const ReactorGLES &reactor) const override
std::string GetLabel() const override