1 /* 2 * Copyright 2024 Google LLC. 3 * 4 * Use of this source code is governed by a BSD-style license that can be 5 * found in the LICENSE file. 6 */ 7 8 #include "experimental/rust_png/decoder/SkPngRustDecoder.h" 9 10 #include <utility> 11 12 #include "experimental/rust_png/decoder/impl/SkPngRustCodec.h" 13 #include "include/core/SkStream.h" 14 15 namespace SkPngRustDecoder { 16 Decode(std::unique_ptr<SkStream> stream,SkCodec::Result * result)17std::unique_ptr<SkCodec> Decode(std::unique_ptr<SkStream> stream, SkCodec::Result* result) { 18 return SkPngRustCodec::MakeFromStream(std::move(stream), result); 19 } 20 21 } // namespace SkPngRustDecoder 22