blob: 70fdf5a57ecec29f3de849684e3a30d82a8b447f (
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
26
27
28
29
30
31
32
33
|
/*
* Copyright 2018 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkTextBlobPriv_DEFINED
#define SkTextBlobPriv_DEFINED
#include "SkTextBlob.h"
class SkReadBuffer;
class SkWriteBuffer;
class SkTextBlobPriv {
public:
/**
* Serialize to a buffer.
*/
static void Flatten(const SkTextBlob& , SkWriteBuffer&);
/**
* Recreate an SkTextBlob that was serialized into a buffer.
*
* @param SkReadBuffer Serialized blob data.
* @return A new SkTextBlob representing the serialized data, or NULL if the buffer is
* invalid.
*/
static sk_sp<SkTextBlob> MakeFromBuffer(SkReadBuffer&);
};
#endif // SkTextBlobPriv_DEFINED
|