// Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #pragma once #include #include #include #include "flutter/fml/macros.h" #include "impeller/aiks/aiks_context.h" #include "impeller/aiks/image.h" #include "impeller/entity/entity.h" #include "impeller/entity/entity_pass.h" namespace impeller { struct Picture { std::unique_ptr pass; std::optional Snapshot(AiksContext& context); std::shared_ptr ToImage(AiksContext& context, ISize size) const; private: std::shared_ptr RenderToTexture( AiksContext& context, ISize size, std::optional translate = std::nullopt) const; }; } // namespace impeller