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

Side by Side Diff: core/src/fxge/android/fpf_skiafontmgr.cpp

Issue 1748803002: Remove fx_fpf.h and IWYU (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 9 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 | « core/src/fxge/android/fpf_skiafontmgr.h ('k') | core/src/fxge/android/fpf_skiamodule.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 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium 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 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include "core/include/fxcrt/fx_ext.h" 7 #include "core/include/fxcrt/fx_system.h"
8 #include "core/src/fxge/android/fx_fpf.h"
9 8
10 #if _FX_OS_ == _FX_ANDROID_ 9 #if _FX_OS_ == _FX_ANDROID_
10
11 #define FPF_SKIAMATCHWEIGHT_NAME1 62 11 #define FPF_SKIAMATCHWEIGHT_NAME1 62
12 #define FPF_SKIAMATCHWEIGHT_NAME2 60 12 #define FPF_SKIAMATCHWEIGHT_NAME2 60
13 #define FPF_SKIAMATCHWEIGHT_1 16 13 #define FPF_SKIAMATCHWEIGHT_1 16
14 #define FPF_SKIAMATCHWEIGHT_2 8 14 #define FPF_SKIAMATCHWEIGHT_2 8
15
16 #include "core/include/fxcrt/fx_ext.h"
17 #include "core/include/fxge/fx_freetype.h"
15 #include "core/src/fxge/android/fpf_skiafont.h" 18 #include "core/src/fxge/android/fpf_skiafont.h"
16 #include "core/src/fxge/android/fpf_skiafontmgr.h" 19 #include "core/src/fxge/android/fpf_skiafontmgr.h"
20
17 #ifdef __cplusplus 21 #ifdef __cplusplus
18 extern "C" { 22 extern "C" {
19 #endif 23 #endif
20 static unsigned long FPF_SkiaStream_Read(FXFT_Stream stream, 24 static unsigned long FPF_SkiaStream_Read(FXFT_Stream stream,
21 unsigned long offset, 25 unsigned long offset,
22 unsigned char* buffer, 26 unsigned char* buffer,
23 unsigned long count) { 27 unsigned long count) {
24 IFX_FileRead* pFileRead = (IFX_FileRead*)stream->descriptor.pointer; 28 IFX_FileRead* pFileRead = (IFX_FileRead*)stream->descriptor.pointer;
25 if (!pFileRead) { 29 if (!pFileRead) {
26 return 0; 30 return 0;
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 } 515 }
512 if (pOS2 && (pOS2->ulCodePageRange1 & (1 << 31))) { 516 if (pOS2 && (pOS2->ulCodePageRange1 & (1 << 31))) {
513 pFontDesc->m_dwStyle |= FXFONT_SYMBOLIC; 517 pFontDesc->m_dwStyle |= FXFONT_SYMBOLIC;
514 } 518 }
515 pFontDesc->m_dwCharsets = FPF_SkiaGetFaceCharset(pOS2); 519 pFontDesc->m_dwCharsets = FPF_SkiaGetFaceCharset(pOS2);
516 pFontDesc->m_iFaceIndex = face->face_index; 520 pFontDesc->m_iFaceIndex = face->face_index;
517 pFontDesc->m_iGlyphNum = face->num_glyphs; 521 pFontDesc->m_iGlyphNum = face->num_glyphs;
518 } 522 }
519 void CFPF_SkiaFontMgr::OutputSystemFonts() {} 523 void CFPF_SkiaFontMgr::OutputSystemFonts() {}
520 #endif 524 #endif
OLDNEW
« no previous file with comments | « core/src/fxge/android/fpf_skiafontmgr.h ('k') | core/src/fxge/android/fpf_skiamodule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698