aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2015-09-14 11:09:42 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-09-14 11:09:43 -0700
commita46ada5635351cf3ceefa1a3570212a21c2a8224 (patch)
treef27d6856a834e4d44447cb97f27d9357bd28f16d /src
parent8725e5366b475a1f6f7d6b64c8d29473fa920eff (diff)
SkValidatingReadBuffer: make sure we don't call readTypeface().
Add an assert to make sure we're not calling this unimplemented method. BUG=skia:3978 Review URL: https://codereview.chromium.org/1341753003
Diffstat (limited to 'src')
-rw-r--r--src/core/SkValidatingReadBuffer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/SkValidatingReadBuffer.cpp b/src/core/SkValidatingReadBuffer.cpp
index e00613b8b5..bc5611a3e3 100644
--- a/src/core/SkValidatingReadBuffer.cpp
+++ b/src/core/SkValidatingReadBuffer.cpp
@@ -213,6 +213,7 @@ uint32_t SkValidatingReadBuffer::getArrayCount() {
}
SkTypeface* SkValidatingReadBuffer::readTypeface() {
+ SkASSERT(false);
// TODO: Implement this (securely) when needed
return nullptr;
}