| // Copyright 2014 PDFium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| #include "../../../include/fxge/fx_ge.h" |
| static CFX_GEModule* g_pGEModule = NULL; |
| CFX_GEModule::CFX_GEModule() |
| CFX_GEModule::~CFX_GEModule() |
| CFX_GEModule* CFX_GEModule::Get() |
| void CFX_GEModule::Create() |
| g_pGEModule = new CFX_GEModule; |
| g_pGEModule->m_pFontMgr = new CFX_FontMgr; |
| g_pGEModule->InitPlatform(); |
| g_pGEModule->SetTextGamma(2.2f); |
| void CFX_GEModule::Use(CFX_GEModule* pModule) |
| void CFX_GEModule::Destroy() |
| CFX_FontCache* CFX_GEModule::GetFontCache() |
| if (m_pFontCache == NULL) { |
| m_pFontCache = new CFX_FontCache(); |
| void CFX_GEModule::SetTextGamma(FX_FLOAT gammaValue) |
| m_GammaValue[i] = (uint8_t)(FXSYS_pow((FX_FLOAT)i / 255, gammaValue) * 255.0f + 0.5f); |
| const uint8_t* CFX_GEModule::GetTextGammaTable() |