blob: e0175999184f17cca420e527ecd1e64fd102bfd0 [file] [log] [blame]
Robert Phillips19c22e92017-02-10 12:32:08 +00001/*
2 * Copyright 2015 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 SkBitmapSourceDeserializer_DEFINED
9#define SkBitmapSourceDeserializer_DEFINED
10
11#include "SkFlattenable.h"
12
13// A temporary utility class to support deserializing legacy SkBitmapSource as SkImageSource.
14// Should be removed when SKP versions which may contain SkBitmapSource records are phased out.
15class SkBitmapSourceDeserializer : public SkFlattenable {
16public:
17 SK_DEFINE_FLATTENABLE_TYPE(SkImageFilter)
18 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkBitmapSource)
19};
20
21#endif