summaryrefslogtreecommitdiff
path: root/core/fxge/ge/cfx_facecache.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-05-11 16:10:16 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-05-15 19:51:15 +0000
commit0c7f94f7f36d0bd8b0bbd0d3d440a8953499d47a (patch)
treebbccec58d7495918973959a9220f8fc46823556a /core/fxge/ge/cfx_facecache.cpp
parent4b78b18a87210d2d7550aa6c097f54ebf2c95e02 (diff)
downloadpdfium-0c7f94f7f36d0bd8b0bbd0d3d440a8953499d47a.tar.xz
Remove gamma code
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 <thestig@chromium.org> Reviewed-by: Nicolás Peña <npm@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fxge/ge/cfx_facecache.cpp')
-rw-r--r--core/fxge/ge/cfx_facecache.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/core/fxge/ge/cfx_facecache.cpp b/core/fxge/ge/cfx_facecache.cpp
index 5ad7bdd99a..6d5e3d4355 100644
--- a/core/fxge/ge/cfx_facecache.cpp
+++ b/core/fxge/ge/cfx_facecache.cpp
@@ -35,15 +35,6 @@ namespace {
constexpr uint32_t kInvalidGlyphIndex = static_cast<uint32_t>(-1);
-void GammaAdjust(uint8_t* pData,
- int nHeight,
- int src_pitch,
- const uint8_t* gammaTable) {
- int count = nHeight * src_pitch;
- for (int i = 0; i < count; i++)
- pData[i] = gammaTable[pData[i]];
-}
-
void ContrastAdjust(uint8_t* pDataIn,
uint8_t* pDataOut,
int nWidth,
@@ -227,8 +218,6 @@ std::unique_ptr<CFX_GlyphBitmap> CFX_FaceCache::RenderGlyph(
} else {
ContrastAdjust(pSrcBuf, pDestBuf, bmwidth, bmheight, src_pitch,
dest_pitch);
- GammaAdjust(pDestBuf, bmheight, dest_pitch,
- CFX_GEModule::Get()->GetTextGammaTable());
}
}
return pGlyphBitmap;