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"
11#include "flutter/impeller/base/config.h"
12#include "flutter/impeller/renderer/backend/gles/reactor_gles.h"
13#include "flutter/impeller/renderer/blit_pass.h"
19 public std::enable_shared_from_this<BlitPassGLES> {
27 std::vector<std::unique_ptr<BlitEncodeGLES>> commands_;
30 bool is_valid_ =
false;
42 const std::shared_ptr<Allocator>& transients_allocator)
const override;
46 std::shared_ptr<Texture> destination,
49 std::string label)
override;
53 std::shared_ptr<DeviceBuffer> destination,
55 size_t destination_offset,
56 std::string label)
override;
60 std::shared_ptr<Texture> destination,
62 std::string label)
override {
68 std::string label)
override;
#define IMPELLER_UNIMPLEMENTED
bool OnCopyTextureToBufferCommand(std::shared_ptr< Texture > source, std::shared_ptr< DeviceBuffer > destination, IRect source_region, size_t destination_offset, std::string label) override
void OnSetLabel(std::string label) override
bool OnGenerateMipmapCommand(std::shared_ptr< Texture > texture, std::string label) override
bool OnCopyBufferToTextureCommand(BufferView source, std::shared_ptr< Texture > destination, IPoint destination_origin, std::string label) override
bool EncodeCommands(const std::shared_ptr< Allocator > &transients_allocator) const override
Encode the recorded commands to the underlying command buffer.
bool OnCopyTextureToTextureCommand(std::shared_ptr< Texture > source, std::shared_ptr< Texture > destination, IRect source_region, IPoint destination_origin, std::string label) override
bool IsValid() const override
Blit passes encode blit into the underlying command buffer.
std::shared_ptr< ReactorGLES > Ref