aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkTextBlobPriv.h
diff options
context:
space:
mode:
authorGravatar Cary Clark <caryclark@skia.org>2018-07-17 08:59:34 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-07-17 17:01:20 +0000
commit53c876900247ad700ce28f7b33031047a6cff402 (patch)
treed3dbf21cb7c6b7b2af6a718ce0a431b0f5404b2a /src/core/SkTextBlobPriv.h
parent462417d3d8683a8efe3b4d5813b972e478655ac3 (diff)
remove unused untested parts of text blob
SkTextBlob has a number of untested entry points to serialize and deserialize. Privitize ones only used by Skia, and remove ones suspected to be unused and untested. R=fmalita@chromium.org TBR=reed@google.com,bsalomon@google.com Bug: skia:6818 Change-Id: I6a9982a26a883982af3592f3302029a1bcdf5aa3 Reviewed-on: https://skia-review.googlesource.com/141820 Reviewed-by: Florin Malita <fmalita@chromium.org> Reviewed-by: Cary Clark <caryclark@skia.org> Commit-Queue: Cary Clark <caryclark@skia.org>
Diffstat (limited to 'src/core/SkTextBlobPriv.h')
-rw-r--r--src/core/SkTextBlobPriv.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/core/SkTextBlobPriv.h b/src/core/SkTextBlobPriv.h
new file mode 100644
index 0000000000..70fdf5a57e
--- /dev/null
+++ b/src/core/SkTextBlobPriv.h
@@ -0,0 +1,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