Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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
46
47 std::string GetLabel() const override;
48
49 [[nodiscard]] bool Encode(const ReactorGLES& reactor) const override;
50};
51
52} // namespace impeller
53
54#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.
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