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

Side by Side Diff: third_party/WebKit/Source/core/css/BinaryDataFontFaceSource.cpp

Issue 1931393002: Introduce typeface cache in blink::FontCache (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wip: others Created 4 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/css/BinaryDataFontFaceSource.h" 5 #include "core/css/BinaryDataFontFaceSource.h"
6 6
7 #include "platform/SharedBuffer.h" 7 #include "platform/SharedBuffer.h"
8 #include "platform/fonts/FontCustomPlatformData.h" 8 #include "platform/fonts/FontCustomPlatformData.h"
9 #include "platform/fonts/FontDescription.h" 9 #include "platform/fonts/FontDescription.h"
10 #include "platform/fonts/SimpleFontData.h" 10 #include "platform/fonts/SimpleFontData.h"
(...skipping 10 matching lines...) Expand all
21 } 21 }
22 22
23 bool BinaryDataFontFaceSource::isValid() const 23 bool BinaryDataFontFaceSource::isValid() const
24 { 24 {
25 return m_customPlatformData.get(); 25 return m_customPlatformData.get();
26 } 26 }
27 27
28 PassRefPtr<SimpleFontData> BinaryDataFontFaceSource::createFontData(const FontDe scription& fontDescription) 28 PassRefPtr<SimpleFontData> BinaryDataFontFaceSource::createFontData(const FontDe scription& fontDescription)
29 { 29 {
30 return SimpleFontData::create( 30 return SimpleFontData::create(
31 m_customPlatformData->fontPlatformData(fontDescription.effectiveFontSize (), 31 m_customPlatformData->fontPlatformData(
32 fontDescription.isSyntheticBold(), fontDescription.isSyntheticItalic (), 32 fontDescription.isSyntheticBold(),
33 fontDescription.orientation()), CustomFontData::create()); 33 fontDescription.isSyntheticItalic(),
34 fontDescription.orientation()),
35 fontDescription.effectiveFontSize(),
36 CustomFontData::create());
34 } 37 }
35 38
36 } // namespace blink 39 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698