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

Unified Diff: content/child/dwrite_font_proxy/dwrite_font_proxy_win.h

Issue 1846433005: Implement direct write fallback proxy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a missing SUCCEEDED call Created 4 years, 8 months 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: content/child/dwrite_font_proxy/dwrite_font_proxy_win.h
diff --git a/content/child/dwrite_font_proxy/dwrite_font_proxy_win.h b/content/child/dwrite_font_proxy/dwrite_font_proxy_win.h
index 63d1f54316b66a2da3c77e7acd7d6722acb77ea2..81dab8c71d11d3c326b2d451f862db567c26a0a3 100644
--- a/content/child/dwrite_font_proxy/dwrite_font_proxy_win.h
+++ b/content/child/dwrite_font_proxy/dwrite_font_proxy_win.h
@@ -71,6 +71,12 @@ class CONTENT_EXPORT DWriteFontCollectionProxy
bool LoadFamily(UINT32 family_index,
IDWriteFontCollection** containing_collection);
+ // Gets the family at the specified index with the expected name. This can be
+ // used to avoid an IPC call when both the index and family name are known.
+ bool GetFontFamily(UINT32 family_index,
+ const base::string16& family_name,
+ IDWriteFontFamily** font_family);
+
bool LoadFamilyNames(UINT32 family_index, IDWriteLocalizedStrings** strings);
bool CreateFamily(UINT32 family_index);
@@ -124,6 +130,8 @@ class CONTENT_EXPORT DWriteFontFamilyProxy
void SetName(const base::string16& family_name);
+ const base::string16& GetName();
+
bool IsLoaded();
protected:

Powered by Google App Engine
This is Rietveld 408576698