summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcaryclark <caryclark@google.com>2016-06-08 12:58:40 -0700
committerCommit bot <commit-bot@chromium.org>2016-06-08 12:58:40 -0700
commitbc85eecc6cbac54e4b69fe202f802047d2979bf1 (patch)
tree0790ce5ca79a4b1d6829cac93812486e7a39ebbc
parent7d2a8d966643ebc77c1aa0f0c53a0ffd2d681c4c (diff)
downloadpdfium-bc85eecc6cbac54e4b69fe202f802047d2979bf1.tar.xz
update skia
Update Skia to the last revision that passed the Chrome DEPS roll. This will help green the Skia tree so that future changes to Skia that break PDFium can be detected. R=rmistry@google.com,dsinclair@chromium.org Review-Url: https://codereview.chromium.org/2042403004
-rw-r--r--DEPS2
-rw-r--r--core/fxge/ge/fx_ge_text.cpp6
2 files changed, 5 insertions, 3 deletions
diff --git a/DEPS b/DEPS
index f9025218e6..27e7a280c8 100644
--- a/DEPS
+++ b/DEPS
@@ -13,7 +13,7 @@ vars = {
'gtest_revision': '8245545b6dc9c4703e6496d1efd19e975ad2b038',
'icu_revision': 'c291cde264469b20ca969ce8832088acb21e0c48',
'pdfium_tests_revision': '6c769320872e6ca82da4adaec1a497237f71b543',
- 'skia_revision': '6f47dbaff54a7705ef3e98f1f65c765e56fd9bd0',
+ 'skia_revision': '7942f22c607caf826a6a609b89338a569d0a30e7',
'tools_memory_revision': '427f10475e1a8d72424c29d00bf689122b738e5d',
'trace_event_revision': 'd83d44b13d07c2fd0a40101a7deef9b93b841732',
'v8_revision': '055bfa771a7bd763305d3bafd43e39459abc95a4',
diff --git a/core/fxge/ge/fx_ge_text.cpp b/core/fxge/ge/fx_ge_text.cpp
index c63b292435..3725f3652b 100644
--- a/core/fxge/ge/fx_ge_text.cpp
+++ b/core/fxge/ge/fx_ge_text.cpp
@@ -738,8 +738,10 @@ CFX_TypeFace* CFX_FontCache::GetDeviceCache(CFX_Font* pFont) {
CFX_TypeFace* CFX_FaceCache::GetDeviceCache(CFX_Font* pFont) {
if (!m_pTypeface) {
- m_pTypeface = SkTypeface::CreateFromStream(
- new SkMemoryStream(pFont->GetFontData(), pFont->GetSize()));
+ m_pTypeface =
+ SkTypeface::MakeFromStream(
+ new SkMemoryStream(pFont->GetFontData(), pFont->GetSize()))
+ .release();
}
return m_pTypeface;
}