| 1 |
/* |
| 2 |
* Copyright 2006 The Android Open Source Project |
| 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 |
#include "include/core/SkMaskFilter.h" |
| 8 |
|
| 9 |
#include "include/core/SkFlattenable.h" |
| 10 |
#include "include/core/SkRefCnt.h" |
| 11 |
#include "include/core/SkTypes.h" |
| 12 |
#include "src/core/SkMaskFilterBase.h" |
| 13 |
struct SkDeserialProcs; |
| 14 |
|
| 15 |
void SkMaskFilter::RegisterFlattenables() { |
| 16 |
sk_register_blur_maskfilter_createproc(); |
| 17 |
} |
| 18 |
|
| 19 |
sk_sp<SkMaskFilter> SkMaskFilter::Deserialize(const void* data, size_t size, |
| 20 |
const SkDeserialProcs* procs) { |
| 21 |
return sk_sp<SkMaskFilter>(static_cast<SkMaskFilter*>( |
| 22 |
SkFlattenable::Deserialize( |
| 23 |
kSkMaskFilter_Type, data, size, procs).release())); |
| 24 |
} |