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

Side by Side Diff: core/src/fxge/ge/fx_ge.cpp

Issue 1262723006: Merge to XFA: Kill IFX_FontMapper (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 4 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/apple/apple_int.h ('k') | core/src/fxge/ge/fx_ge_fontmap.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 "../../../include/fxge/fx_ge.h" 7 #include "../../../include/fxge/fx_ge.h"
8 #include "text_int.h" 8 #include "text_int.h"
9 static CFX_GEModule* g_pGEModule = NULL; 9 static CFX_GEModule* g_pGEModule = NULL;
10 CFX_GEModule::CFX_GEModule() 10 CFX_GEModule::CFX_GEModule()
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 int i = 0; 59 int i = 0;
60 while (i < 256) { 60 while (i < 256) {
61 m_GammaValue[i] = (uint8_t)(FXSYS_pow((FX_FLOAT)i / 255, gammaValue) * 2 55.0f + 0.5f); 61 m_GammaValue[i] = (uint8_t)(FXSYS_pow((FX_FLOAT)i / 255, gammaValue) * 2 55.0f + 0.5f);
62 i++; 62 i++;
63 } 63 }
64 } 64 }
65 const uint8_t* CFX_GEModule::GetTextGammaTable() 65 const uint8_t* CFX_GEModule::GetTextGammaTable()
66 { 66 {
67 return m_GammaValue; 67 return m_GammaValue;
68 } 68 }
69 void CFX_GEModule::SetExtFontMapper(IFX_FontMapper* pFontMapper)
70 {
71 GetFontMgr()->m_pExtMapper = pFontMapper;
72 pFontMapper->m_pFontMgr = m_pFontMgr;
73 }
OLDNEW
« no previous file with comments | « core/src/fxge/apple/apple_int.h ('k') | core/src/fxge/ge/fx_ge_fontmap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698