summaryrefslogtreecommitdiff
path: root/core/fxge/dib/cfx_dibitmap.h
diff options
context:
space:
mode:
authorNicolas Pena <npm@chromium.org>2017-04-19 18:02:56 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-04-19 22:17:53 +0000
commit7a68198438f41e19f21e06e0f3447e525d0b253b (patch)
tree45abd3dfb51b4c252e7d62774dfe032d156667f9 /core/fxge/dib/cfx_dibitmap.h
parent3c66ea01f5239a7b1a0da75285e0c8048e5cf784 (diff)
downloadpdfium-7a68198438f41e19f21e06e0f3447e525d0b253b.tar.xz
Split up CFX_DIBitmap::ConvertColorScale
The code is completely separated into CMYK vs RGB cases, so having two separate private methods is better. Change-Id: I67f885ee2f4393b722c6d6e770b230a5aa6b0cb1 Reviewed-on: https://pdfium-review.googlesource.com/4372 Commit-Queue: Nicolás Peña <npm@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org> Reviewed-by: Wei Li <weili@chromium.org>
Diffstat (limited to 'core/fxge/dib/cfx_dibitmap.h')
-rw-r--r--core/fxge/dib/cfx_dibitmap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/fxge/dib/cfx_dibitmap.h b/core/fxge/dib/cfx_dibitmap.h
index 6fd4b7c89a..df751db3df 100644
--- a/core/fxge/dib/cfx_dibitmap.h
+++ b/core/fxge/dib/cfx_dibitmap.h
@@ -115,6 +115,10 @@ class CFX_DIBitmap : public CFX_DIBSource {
#if defined _SKIA_SUPPORT_PATHS_
Format m_nFormat;
#endif
+
+ private:
+ void ConvertRGBColorScale(uint32_t forecolor, uint32_t backcolor);
+ void ConvertCMYKColorScale(uint32_t forecolor, uint32_t backcolor);
};
#endif // CORE_FXGE_DIB_CFX_DIBITMAP_H_