Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(399)

Side by Side Diff: include/core/SkFlattenableSerialization.h

Issue 44573002: Enabling validation code in serialization and adding serialization to fuzzer (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | samplecode/SampleFilterFuzz.cpp » ('j') | samplecode/SampleFilterFuzz.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkFlattenableSerialization_DEFINED 8 #ifndef SkFlattenableSerialization_DEFINED
9 #define SkFlattenableSerialization_DEFINED 9 #define SkFlattenableSerialization_DEFINED
10 10
11 #include "SkTypes.h" 11 #include "SkFlattenable.h"
12 12
13 class SkData; 13 class SkData;
14 class SkFlattenable;
15 14
16 SK_API SkData* SkSerializeFlattenable(SkFlattenable*); 15 SK_API SkData* SkValidatingSerializeFlattenable(SkFlattenable*);
17 SK_API SkFlattenable* SkDeserializeFlattenable(const void* data, size_t size); 16 SK_API SkFlattenable* SkValidatingDeserializeFlattenable(const void* data, size_ t size,
17 SkFlattenable::Type typ e);
18
19 // Temporary fix for canary build
Stephen White 2013/10/25 16:13:11 Not sure I understand this. Is this changing all s
mtklein 2013/10/25 16:17:31 I think this is just a name refinement. Sk{Serial
Stephen White 2013/10/25 16:36:21 Ah, ok. Thanks.
sugoi1 2013/10/25 17:15:04 FYI, there's only a single user of these functions
20 #define SkSerializeFlattenable(flattenable) \
21 SkValidatingSerializeFlattenable(flattenable)
22
23 #define SkDeserializeFlattenable(data, size) \
24 SkValidatingDeserializeFlattenable(data, size, SkFlattenable::kSkImageFilter_Typ e)
18 25
19 #endif 26 #endif
OLDNEW
« no previous file with comments | « no previous file | samplecode/SampleFilterFuzz.cpp » ('j') | samplecode/SampleFilterFuzz.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698