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

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

Issue 1920843004: Delete the font loading experiment code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « content/child/dwrite_font_proxy/dwrite_font_proxy_win.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/dwrite_font_proxy/dwrite_font_proxy_win.cc
diff --git a/content/child/dwrite_font_proxy/dwrite_font_proxy_win.cc b/content/child/dwrite_font_proxy/dwrite_font_proxy_win.cc
index b2acd7003c5c6f62aa429cca5177a4c0c785f066..d91cf32542718e3b0bdeefd83ec3e7001a5020be 100644
--- a/content/child/dwrite_font_proxy/dwrite_font_proxy_win.cc
+++ b/content/child/dwrite_font_proxy/dwrite_font_proxy_win.cc
@@ -42,9 +42,6 @@ enum DirectWriteLoadFamilyResult {
const char kFontKeyName[] = "font_key_name";
-const base::Feature kFileLoadingExperimentFeature{
- "DirectWriteFontFileLoadingExperiment", base::FEATURE_DISABLED_BY_DEFAULT};
-
void LogLoadFamilyResult(DirectWriteLoadFamilyResult result) {
UMA_HISTOGRAM_ENUMERATION("DirectWrite.Fonts.Proxy.LoadFamilyResult", result,
LOAD_FAMILY_MAX_VALUE);
@@ -487,16 +484,7 @@ HRESULT FontFileEnumerator::GetCurrentFontFile(IDWriteFontFile** file) {
return E_FAIL;
}
- if (base::FeatureList::IsEnabled(kFileLoadingExperimentFeature)) {
- TRACE_EVENT0("dwrite",
- "FontFileEnumerator::GetCurrentFontFile (directwrite)");
- HRESULT hr = factory_->CreateFontFileReference(
- file_names_[current_file_].c_str(), nullptr /* lastWriteTime*/, file);
- DCHECK(SUCCEEDED(hr));
- return hr;
- }
-
- TRACE_EVENT0("dwrite", "FontFileEnumerator::GetCurrentFontFile (memmap)");
+ TRACE_EVENT0("dwrite", "FontFileEnumerator::GetCurrentFontFile");
// CreateCustomFontFileReference ends up calling
// DWriteFontCollectionProxy::CreateStreamFromKey.
HRESULT hr = factory_->CreateCustomFontFileReference(
« no previous file with comments | « content/child/dwrite_font_proxy/dwrite_font_proxy_win.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698