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

Side by Side Diff: core/fxge/android/cfpf_skiafont.cpp

Issue 2448293002: Name core/fxge/android files appropriately and use one file per class (Closed)
Patch Set: Fix build Created 4 years, 1 month 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
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2016 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/fxge/android/fpf_skiafont.h" 7 #include "core/fxge/android/cfpf_skiafont.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
11 #include "core/fxcrt/fx_system.h" 11 #include "core/fxcrt/fx_system.h"
12 #include "core/fxge/android/fpf_skiafontmgr.h" 12 #include "core/fxge/android/cfpf_skiabufferfont.h"
13 #include "core/fxge/android/cfpf_skiafilefont.h"
14 #include "core/fxge/android/cfpf_skiafontdescriptor.h"
15 #include "core/fxge/android/cfpf_skiafontmgr.h"
16 #include "core/fxge/android/cfpf_skiapathfont.h"
13 #include "core/fxge/fx_freetype.h" 17 #include "core/fxge/fx_freetype.h"
14 18
15 #define FPF_EM_ADJUST(em, a) (em == 0 ? (a) : (a)*1000 / em) 19 #define FPF_EM_ADJUST(em, a) (em == 0 ? (a) : (a)*1000 / em)
16 20
17 CFPF_SkiaFont::CFPF_SkiaFont() 21 CFPF_SkiaFont::CFPF_SkiaFont()
18 : m_pFontMgr(nullptr), 22 : m_pFontMgr(nullptr),
19 m_pFontDes(nullptr), 23 m_pFontDes(nullptr),
20 m_Face(nullptr), 24 m_Face(nullptr),
21 m_dwStyle(0), 25 m_dwStyle(0),
22 m_uCharset(0), 26 m_uCharset(0),
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 if (!m_Face) 210 if (!m_Face)
207 return FALSE; 211 return FALSE;
208 212
209 m_dwStyle = dwStyle; 213 m_dwStyle = dwStyle;
210 m_uCharset = uCharset; 214 m_uCharset = uCharset;
211 m_pFontMgr = pFontMgr; 215 m_pFontMgr = pFontMgr;
212 m_pFontDes = pFontDes; 216 m_pFontDes = pFontDes;
213 m_dwRefCount = 1; 217 m_dwRefCount = 1;
214 return TRUE; 218 return TRUE;
215 } 219 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698