aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Batrak <Dmitry.Batrak@jetbrains.com>2016-08-08 19:34:13 +0300
committerDmitry Batrak <Dmitry.Batrak@jetbrains.com>2016-08-08 19:34:13 +0300
commit6305747afdec0b78624a2cf6bac2cb5344506a62 (patch)
tree77d62062b7c824ba5fab6b28fd6a4aac0e6c5c72
parent04e270f4dedb623f157dc62bced2cc7aa1bcccf1 (diff)
downloadjdk8u_jdk-6305747afdec0b78624a2cf6bac2cb5344506a62.tar.gz
JRE-11 Support text rendering via DirectWrite API on Windowsjb8u112-b287
use shared DirectWrite factory - it's much faster
-rw-r--r--src/windows/native/sun/font/lcdglyphDW.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/windows/native/sun/font/lcdglyphDW.cpp b/src/windows/native/sun/font/lcdglyphDW.cpp
index bfcb732885..6644d2644a 100644
--- a/src/windows/native/sun/font/lcdglyphDW.cpp
+++ b/src/windows/native/sun/font/lcdglyphDW.cpp
@@ -109,7 +109,7 @@ Java_sun_font_FileFontStrike__1getGlyphImageFromWindowsUsingDirectWrite
env->GetStringRegion(fontFamily, 0, nameLen, lf.lfFaceName);
lf.lfFaceName[nameLen] = '\0';
- HRESULT hr = DWriteCreateFactory(DWRITE_FACTORY_TYPE_ISOLATED,
+ HRESULT hr = DWriteCreateFactory(DWRITE_FACTORY_TYPE_SHARED,
__uuidof(IDWriteFactory),
reinterpret_cast<IUnknown**>(&factory));
if (FAILED(hr)) {