From 0c7f94f7f36d0bd8b0bbd0d3d440a8953499d47a Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Thu, 11 May 2017 16:10:16 -0400 Subject: Remove gamma code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The gamma value is always 2.2, which means the table entries all point to themselves. Remove the usage of the gamma table. Change-Id: Idbb06015e8acd9f106f4bd1da5ef06563fb26296 Reviewed-on: https://pdfium-review.googlesource.com/5352 Reviewed-by: Lei Zhang Reviewed-by: Nicolás Peña Reviewed-by: Tom Sepez Commit-Queue: dsinclair --- core/fxge/cfx_gemodule.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'core/fxge/cfx_gemodule.h') diff --git a/core/fxge/cfx_gemodule.h b/core/fxge/cfx_gemodule.h index e51ddde967..429f7d9a39 100644 --- a/core/fxge/cfx_gemodule.h +++ b/core/fxge/cfx_gemodule.h @@ -24,8 +24,6 @@ class CFX_GEModule { void Init(const char** pUserFontPaths); CFX_FontCache* GetFontCache(); CFX_FontMgr* GetFontMgr() { return m_pFontMgr.get(); } - void SetTextGamma(float gammaValue); - const uint8_t* GetTextGammaTable() const; CCodec_ModuleMgr* GetCodecModule() { return m_pCodecModule.get(); } void* GetPlatformData() { return m_pPlatformData; } @@ -37,7 +35,6 @@ class CFX_GEModule { void InitPlatform(); void DestroyPlatform(); - uint8_t m_GammaValue[256]; std::unique_ptr m_pFontCache; std::unique_ptr m_pFontMgr; std::unique_ptr m_pCodecModule; -- cgit v1.2.3