| Flutter Impeller |

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 #pragma once
6
7 #include "impeller/base/backend_cast.h"
8 #include "impeller/renderer/backend/gles/reactor_gles.h"
9 #include "impeller/renderer/blit_command.h"
10
11 namespace impeller {
12
13 /// Mixin for dispatching GLES commands.
14 struct BlitEncodeGLES : BackendCast<BlitEncodeGLES, BlitCommand> {
15 virtual ~BlitEncodeGLES();
16
17 virtual std::string GetLabel() const = 0;
18
19 [[nodiscard]] virtual bool Encode(const ReactorGLES& reactor) const = 0;
20 };
21
22 struct BlitCopyTextureToTextureCommandGLES
23 : public BlitEncodeGLES,
24 public BlitCopyTextureToTextureCommand {
25 ~BlitCopyTextureToTextureCommandGLES() override;
26
27 std::string GetLabel() const override;
28
29 [[nodiscard]] bool Encode(const ReactorGLES& reactor) const override;
30 };
31
32 struct BlitCopyTextureToBufferCommandGLES
33 : public BlitEncodeGLES,
34 public BlitCopyTextureToBufferCommand {
35 ~BlitCopyTextureToBufferCommandGLES() override;
36
37 std::string GetLabel() const override;
38
39 [[nodiscard]] bool Encode(const ReactorGLES& reactor) const override;
40 };
41
42 struct BlitGenerateMipmapCommandGLES : public BlitEncodeGLES,
43 public BlitGenerateMipmapCommand {
44 ~BlitGenerateMipmapCommandGLES() override;
45
46 std::string GetLabel() const override;
47
48 [[nodiscard]] bool Encode(const ReactorGLES& reactor) const override;
49 };
50
51 } // namespace impeller
impeller::BlitGenerateMipmapCommand
Definition: blit_command.h:37
impeller::BlitCopyTextureToTextureCommandGLES::Encode
bool Encode(const ReactorGLES &reactor) const override
Definition: blit_command_gles.cc:66
impeller::BlitGenerateMipmapCommandGLES
Definition: blit_command_gles.h:42
blit_command.h
impeller::BlitEncodeGLES::Encode
virtual bool Encode(const ReactorGLES &reactor) const =0
impeller::BlitCopyTextureToTextureCommandGLES::~BlitCopyTextureToTextureCommandGLES
~BlitCopyTextureToTextureCommandGLES() override
impeller::BlitCopyTextureToBufferCommand
Definition: blit_command.h:24
impeller::BlitGenerateMipmapCommandGLES::Encode
bool Encode(const ReactorGLES &reactor) const override
Definition: blit_command_gles.cc:164
backend_cast.h
impeller::BlitCopyTextureToBufferCommandGLES::GetLabel
std::string GetLabel() const override
Definition: blit_command_gles.cc:123
impeller::BlitEncodeGLES::GetLabel
virtual std::string GetLabel() const =0
impeller::BlitEncodeGLES
Mixin for dispatching GLES commands.
Definition: blit_command_gles.h:14
impeller::BlitCopyTextureToBufferCommandGLES::Encode
bool Encode(const ReactorGLES &reactor) const override
Definition: blit_command_gles.cc:127
impeller::BlitGenerateMipmapCommandGLES::GetLabel
std::string GetLabel() const override
Definition: blit_command_gles.cc:160
impeller::BlitCopyTextureToTextureCommandGLES
Definition: blit_command_gles.h:22
reactor_gles.h
impeller::BlitCopyTextureToBufferCommandGLES::~BlitCopyTextureToBufferCommandGLES
~BlitCopyTextureToBufferCommandGLES() override
impeller::BackendCast
Definition: backend_cast.h:12
impeller::ReactorGLES
Definition: reactor_gles.h:19
impeller::BlitGenerateMipmapCommandGLES::~BlitGenerateMipmapCommandGLES
~BlitGenerateMipmapCommandGLES() override
impeller::BlitCopyTextureToTextureCommandGLES::GetLabel
std::string GetLabel() const override
Definition: blit_command_gles.cc:62
impeller
Definition: aiks_context.cc:10
impeller::BlitCopyTextureToBufferCommandGLES
Definition: blit_command_gles.h:32
impeller::BlitCopyTextureToTextureCommand
Definition: blit_command.h:17
impeller::BlitEncodeGLES::~BlitEncodeGLES
virtual ~BlitEncodeGLES()