Bug 1334761: UpdateClearTypeUsage on startup. r=jfkthame draft
authorBas Schouten <bschouten@mozilla.com>
Mon, 30 Jan 2017 13:53:59 +0000
changeset 467967 0240739f344f1b43621601b4a733e6e1ec4b87d9
parent 467966 18c7c3e4963996a8be5960d9f5a8b172db0aa1a2
child 543816 c40a8dd49731c63b351812d5100b22c296a7edab
push id43319
push userbschouten@mozilla.com
push dateMon, 30 Jan 2017 13:55:59 +0000
reviewersjfkthame
bugs1334761
milestone54.0a1
Bug 1334761: UpdateClearTypeUsage on startup. r=jfkthame MozReview-Commit-ID: AQciEae36eW
gfx/thebes/gfxWindowsPlatform.cpp
--- a/gfx/thebes/gfxWindowsPlatform.cpp
+++ b/gfx/thebes/gfxWindowsPlatform.cpp
@@ -321,16 +321,17 @@ gfxWindowsPlatform::gfxWindowsPlatform()
   /*
    * Initialize COM
    */
   CoInitialize(nullptr);
 
   RegisterStrongMemoryReporter(new GfxD2DVramReporter());
   RegisterStrongMemoryReporter(new GPUAdapterReporter());
   RegisterStrongMemoryReporter(new D3DSharedTexturesReporter());
+  gfxDWriteFont::UpdateClearTypeUsage();
 }
 
 gfxWindowsPlatform::~gfxWindowsPlatform()
 {
   mozilla::gfx::Factory::D2DCleanup();
 
   DeviceManagerD3D9::Shutdown();
   DeviceManagerDx::Shutdown();