1 /* 2 * Copyright 2013 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 SkFlattenableSerialization_DEFINED 9 #define SkFlattenableSerialization_DEFINED 10 11 #include "SkFlattenable.h" 12 13 class SkData; 14 class SkImageFilter; 15 16 SK_API SkData* SkValidatingSerializeFlattenable(SkFlattenable*); 17 SK_API SkFlattenable* SkValidatingDeserializeFlattenable(const void* data, size_t size, 18 SkFlattenable::Type type); 19 20 SK_API sk_sp<SkImageFilter> SkValidatingDeserializeImageFilter(const void* data, size_t size); 21 22 #endif 23