5 #ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_BLIT_PASS_GLES_H_
6 #define FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_BLIT_PASS_GLES_H_
10 #include "flutter/fml/macros.h"
19 public std::enable_shared_from_this<BlitPassGLES> {
27 std::vector<std::unique_ptr<BlitEncodeGLES>> commands_;
30 bool is_valid_ =
false;
35 bool IsValid()
const override;
38 void OnSetLabel(std::string label)
override;
42 const std::shared_ptr<Allocator>& transients_allocator)
const override;
45 bool OnCopyTextureToTextureCommand(std::shared_ptr<Texture> source,
46 std::shared_ptr<Texture> destination,
49 std::string label)
override;
52 bool OnCopyTextureToBufferCommand(std::shared_ptr<Texture> source,
53 std::shared_ptr<DeviceBuffer> destination,
55 size_t destination_offset,
56 std::string label)
override;
59 bool OnCopyBufferToTextureCommand(
BufferView source,
60 std::shared_ptr<Texture> destination,
62 std::string label)
override {
67 bool OnGenerateMipmapCommand(std::shared_ptr<Texture> texture,
68 std::string label)
override;
77 #endif // FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_BLIT_PASS_GLES_H_