1 /* 2 * Copyright 2018 Google Inc. 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 #ifndef SkWuffsCodec_DEFINED 9 #define SkWuffsCodec_DEFINED 10 11 #include "include/codec/SkCodec.h" 12 13 #include <cstddef> 14 #include <memory> 15 16 class SkStream; 17 18 19 // These functions' types match DecoderProc in SkCodec.cpp. 20 bool SkWuffsCodec_IsFormat(const void*, size_t); 21 std::unique_ptr<SkCodec> SkWuffsCodec_MakeFromStream(std::unique_ptr<SkStream>, SkCodec::Result*); 22 23 #endif // SkWuffsCodec_DEFINED 24