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

Unified Diff: third_party/WebKit/Source/platform/fonts/FontCustomPlatformData.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/FontCustomPlatformData.h
diff --git a/third_party/WebKit/Source/platform/fonts/FontCustomPlatformData.h b/third_party/WebKit/Source/platform/fonts/FontCustomPlatformData.h
index cffa247cc3045af52f4715d03e85aeb66f58dc2c..055ded0d719971cd0b4b7c8eda94dd6e3e74bee5 100644
--- a/third_party/WebKit/Source/platform/fonts/FontCustomPlatformData.h
+++ b/third_party/WebKit/Source/platform/fonts/FontCustomPlatformData.h
@@ -64,11 +64,13 @@ class PLATFORM_EXPORT FontCustomPlatformData {
bool italic,
FontOrientation = FontOrientation::Horizontal);
+ size_t dataSize() const { return m_dataSize; }
static bool supportsFormat(const String&);
private:
- explicit FontCustomPlatformData(sk_sp<SkTypeface>);
+ FontCustomPlatformData(sk_sp<SkTypeface>, size_t dataSize);
sk_sp<SkTypeface> m_typeface;
+ size_t m_dataSize;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698