77e079af1a
BUG= Committed: http://code.google.com/p/skia/source/detail?r=11968 R=reed@google.com, mtklein@google.com, senorblanco@chromium.org, bsalomon@google.com, robertphillips@google.com Author: sugoi@chromium.org Review URL: https://codereview.chromium.org/44573002 git-svn-id: http://skia.googlecode.com/svn/trunk@11981 2bbb7eff-a529-9590-31e7-b0007b416f81
27 lines
778 B
C++
27 lines
778 B
C++
/*
|
|
* Copyright 2013 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#ifndef SkFlattenableSerialization_DEFINED
|
|
#define SkFlattenableSerialization_DEFINED
|
|
|
|
#include "SkFlattenable.h"
|
|
|
|
class SkData;
|
|
|
|
SK_API SkData* SkValidatingSerializeFlattenable(SkFlattenable*);
|
|
SK_API SkFlattenable* SkValidatingDeserializeFlattenable(const void* data, size_t size,
|
|
SkFlattenable::Type type);
|
|
|
|
// Temporary fix for canary build
|
|
#define SkSerializeFlattenable(flattenable) \
|
|
SkValidatingSerializeFlattenable(flattenable)
|
|
|
|
#define SkDeserializeFlattenable(data, size) \
|
|
SkValidatingDeserializeFlattenable(data, size, SkFlattenable::kSkImageFilter_Type)
|
|
|
|
#endif
|