Commit ea6efaf4 authored by Olivier Yiptong's avatar Olivier Yiptong Committed by Commit Bot

FontAccess: Move temporary structure declaration to Windows implementation

Small code cleanup: the temporary structure declared in the base
FontEnumerationCache class is moved to the Windows implementing class,
FontEnumerationCacheWin, because it's the only class that uses it.

Bug: 1043306
Change-Id: Ia6145f26a223d64a79920042c57e231eca575fe2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2422470
Commit-Queue: Olivier Yiptong <oyiptong@chromium.org>
Auto-Submit: Olivier Yiptong <oyiptong@chromium.org>
Reviewed-by: default avatarJoshua Bell <jsbell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#809343}
parent 52f2a199
......@@ -73,9 +73,6 @@ class CONTENT_EXPORT FontEnumerationCache {
bool IsFontEnumerationCacheValid() const;
// Protobuf structure temporarily used during cache construction and shared.
std::unique_ptr<blink::FontEnumerationTable> font_enumeration_table_;
base::MappedReadOnlyRegion enumeration_cache_memory_;
base::AtomicFlag enumeration_cache_built_;
base::AtomicFlag enumeration_cache_build_started_;
......
......@@ -69,6 +69,9 @@ class CONTENT_EXPORT FontEnumerationCacheWin : public FontEnumerationCache {
Microsoft::WRL::ComPtr<IDWriteFontCollection> collection_;
uint32_t outstanding_family_results_ = 0;
// Protobuf structure temporarily used during cache construction and shared.
std::unique_ptr<blink::FontEnumerationTable> font_enumeration_table_;
std::map<HRESULT, unsigned> enumeration_errors_;
std::unique_ptr<base::ElapsedTimer> enumeration_timer_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment