Index: src/utils/SkBitmapSourceDeserializer.h |
diff --git a/src/utils/SkBitmapSourceDeserializer.h b/src/utils/SkBitmapSourceDeserializer.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e0175999184f17cca420e527ecd1e64fd102bfd0 |
--- /dev/null |
+++ b/src/utils/SkBitmapSourceDeserializer.h |
@@ -0,0 +1,21 @@ |
+/* |
+ * Copyright 2015 Google Inc. |
+ * |
+ * Use of this source code is governed by a BSD-style license that can be |
+ * found in the LICENSE file. |
+ */ |
+ |
+#ifndef SkBitmapSourceDeserializer_DEFINED |
+#define SkBitmapSourceDeserializer_DEFINED |
+ |
+#include "SkFlattenable.h" |
+ |
+// A temporary utility class to support deserializing legacy SkBitmapSource as SkImageSource. |
+// Should be removed when SKP versions which may contain SkBitmapSource records are phased out. |
+class SkBitmapSourceDeserializer : public SkFlattenable { |
+public: |
+ SK_DEFINE_FLATTENABLE_TYPE(SkImageFilter) |
+ SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkBitmapSource) |
+}; |
+ |
+#endif |