aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pdf/SkPDFUtils.h
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2016-09-16 13:21:08 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-09-16 13:21:08 -0700
commit3b294d5ba96b68ae1cbe59cfea29b112959cca09 (patch)
tree00fc53138d453588c011e7b64beea1d6d3f22feb /src/pdf/SkPDFUtils.h
parent875b8f6d35510523b0267e9a78217a91b2484698 (diff)
Revert of SkPDF: Implement /ActualText to make text extraction correct. (patchset #11 id:220001 of https://codereview.chromium.org/2322403002/ )
Reason for revert: MSAN, ASAN errors Original issue's description: > SkPDF: Implement /ActualText to make text extraction correct. > > For old API: no change. > > For new API: LTR text is perfectly extracted, RTL needs better testing. > > BUG=skia:5434 > GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2322403002 > > Committed: https://skia.googlesource.com/skia/+/dbd16345a5b2b824f2696af791bb0f01304cf549 TBR=tomhudson@google.com,bungeman@google.com # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=skia:5434 Review-Url: https://codereview.chromium.org/2338213008
Diffstat (limited to 'src/pdf/SkPDFUtils.h')
-rw-r--r--src/pdf/SkPDFUtils.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/pdf/SkPDFUtils.h b/src/pdf/SkPDFUtils.h
index 964689f4f2..a9194f2e72 100644
--- a/src/pdf/SkPDFUtils.h
+++ b/src/pdf/SkPDFUtils.h
@@ -12,7 +12,6 @@
#include "SkPaint.h"
#include "SkPath.h"
#include "SkStream.h"
-#include "SkUtils.h"
class SkMatrix;
class SkPDFArray;
@@ -93,15 +92,7 @@ inline void WriteUInt8(SkDynamicMemoryWStream* wStream, uint8_t value) {
result[1] = gHex[0xF & value];
wStream->write(result, 2);
}
-inline void WriteUTF16beHex(SkDynamicMemoryWStream* wStream, SkUnichar utf32) {
- uint16_t utf16[2] = {0, 0};
- size_t len = SkUTF16_FromUnichar(utf32, utf16);
- SkASSERT(len == 1 || len == 2);
- SkPDFUtils::WriteUInt16BE(wStream, utf16[0]);
- if (len == 2) {
- SkPDFUtils::WriteUInt16BE(wStream, utf16[1]);
- }
-}
+
} // namespace SkPDFUtils
#endif