blob: 33bbb38a9b7e077094021464870af9f04ab2bc83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/*
* 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 "SkTypes.h"
class SkData;
class SkFlattenable;
/**
* These utility functions are used by the chromium codebase to safely
* serialize and deserialize SkFlattenable objects. These aren't made for
* optimal speed, but rather designed with security in mind in order to
* prevent Skia from being an entry point for potential attacks.
*/
SK_API SkData* SkValidatingSerializeFlattenable(SkFlattenable*);
SK_API SkFlattenable* SkValidatingDeserializeFlattenable(const void* data, size_t size);
#endif
|