aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkDataTable.h
diff options
context:
space:
mode:
authorGravatar Herb Derby <herb@google.com>2017-02-28 13:45:41 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-02-28 21:11:45 +0000
commit5990680a09b22e16e112c4b836c4e338f0c40f79 (patch)
tree60e9f306b96e036b60a6f8a82962e791def04cb0 /include/core/SkDataTable.h
parent2c2bc11aea4dfcd7ee2f5859838a2aa0a56939e0 (diff)
Remove SkDataTableBuilder. It is not used.
Change-Id: Ieae9adba73b8ada959e08d69a06d0f3d010209c6 Reviewed-on: https://skia-review.googlesource.com/9076 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Herb Derby <herb@google.com>
Diffstat (limited to 'include/core/SkDataTable.h')
-rw-r--r--include/core/SkDataTable.h55
1 files changed, 0 insertions, 55 deletions
diff --git a/include/core/SkDataTable.h b/include/core/SkDataTable.h
index 0c92d7f52e..f8aba9a559 100644
--- a/include/core/SkDataTable.h
+++ b/include/core/SkDataTable.h
@@ -8,7 +8,6 @@
#ifndef SkDataTable_DEFINED
#define SkDataTable_DEFINED
-#include "../private/SkChunkAlloc.h"
#include "../private/SkTDArray.h"
#include "SkData.h"
#include "SkString.h"
@@ -117,58 +116,4 @@ private:
typedef SkRefCnt INHERITED;
};
-/**
- * Helper class that allows for incrementally building up the data needed to
- * create a SkDataTable.
- */
-class SK_API SkDataTableBuilder : SkNoncopyable {
-public:
- SkDataTableBuilder(size_t minChunkSize);
- ~SkDataTableBuilder();
-
- int count() const { return fDir.count(); }
- size_t minChunkSize() const { return fMinChunkSize; }
-
- /**
- * Forget any previously appended entries, setting count() back to 0.
- */
- void reset(size_t minChunkSize);
- void reset() {
- this->reset(fMinChunkSize);
- }
-
- /**
- * Copy size-bytes from data, and append it to the growing SkDataTable.
- */
- void append(const void* data, size_t size);
-
- /**
- * Helper version of append() passes strlen() + 1 for the size,
- * so the trailing-zero will be copied as well.
- */
- void appendStr(const char str[]) {
- this->append(str, strlen(str) + 1);
- }
-
- /**
- * Helper version of append() passes string.size() + 1 for the size,
- * so the trailing-zero will be copied as well.
- */
- void appendString(const SkString& string) {
- this->append(string.c_str(), string.size() + 1);
- }
-
- /**
- * Return an SkDataTable from the accumulated entries that were added by
- * calls to append(). This call also clears any accumluated entries from
- * this builder, so its count() will be 0 after this call.
- */
- sk_sp<SkDataTable> detachDataTable();
-
-private:
- SkTDArray<SkDataTable::Dir> fDir;
- SkChunkAlloc* fHeap;
- size_t fMinChunkSize;
-};
-
#endif