5 #ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_BLIT_PASS_GLES_H_
6 #define FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_BLIT_PASS_GLES_H_
18 public std::enable_shared_from_this<BlitPassGLES> {
26 std::vector<std::unique_ptr<BlitEncodeGLES>> commands_;
29 bool is_valid_ =
false;
34 bool IsValid()
const override;
37 void OnSetLabel(std::string label)
override;
41 const std::shared_ptr<Allocator>& transients_allocator)
const override;
44 bool ResizeTexture(
const std::shared_ptr<Texture>& source,
45 const std::shared_ptr<Texture>& destination)
override;
48 bool OnCopyTextureToTextureCommand(std::shared_ptr<Texture> source,
49 std::shared_ptr<Texture> destination,
52 std::string label)
override;
55 bool OnCopyTextureToBufferCommand(std::shared_ptr<Texture> source,
56 std::shared_ptr<DeviceBuffer> destination,
58 size_t destination_offset,
59 std::string label)
override;
62 bool OnCopyBufferToTextureCommand(
BufferView source,
63 std::shared_ptr<Texture> destination,
64 IRect destination_region,
67 bool convert_to_read)
override;
70 bool OnGenerateMipmapCommand(std::shared_ptr<Texture> texture,
71 std::string label)
override;
80 #endif // FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_BLIT_PASS_GLES_H_