Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(442)

Unified Diff: third_party/WebKit/Source/platform/fonts/WebFontDecoder.h

Issue 2533503002: Report decoded webfont blob size to memory-infra (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/fonts/WebFontDecoder.h
diff --git a/third_party/WebKit/Source/platform/fonts/WebFontDecoder.h b/third_party/WebKit/Source/platform/fonts/WebFontDecoder.h
index 42cf33d8c4656cb2f131771f1b1052e24b47bfed..31b41aa240facb1d4e01008e2b7e4c47a9107ef6 100644
--- a/third_party/WebKit/Source/platform/fonts/WebFontDecoder.h
+++ b/third_party/WebKit/Source/platform/fonts/WebFontDecoder.h
@@ -47,6 +47,7 @@ class WebFontDecoder final {
WebFontDecoder() {}
sk_sp<SkTypeface> decode(SharedBuffer*);
+ size_t decodedSize() const { return m_decodedSize; }
static bool supportsFormat(const String&);
String getErrorString() const { return m_otsErrorString; }
@@ -57,6 +58,7 @@ class WebFontDecoder final {
}
String m_otsErrorString;
+ size_t m_decodedSize = 0;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698