2 * Copyright 2014 Google Inc.
3 * Copyright 2015 Xamarin Inc.
4 * Copyright 2017 Microsoft Corporation. All rights reserved.
6 * Use of this source code is governed by a BSD-style license that can be
7 * found in the LICENSE file.
10 #ifndef sk_pixelserializer_DEFINED
11 #define sk_pixelserializer_DEFINED
15 SK_C_PLUS_PLUS_BEGIN_GUARD
17 SK_C_API void sk_pixelserializer_unref(sk_pixelserializer_t* cserializer);
18 SK_C_API bool sk_pixelserializer_use_encoded_data(sk_pixelserializer_t* cserializer, const void* data, size_t len);
19 SK_C_API sk_data_t* sk_pixelserializer_encode(sk_pixelserializer_t* cserializer, const sk_pixmap_t* cpixmap);
21 SK_C_PLUS_PLUS_END_GUARD