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

Unified Diff: core/src/fpdfapi/fpdf_render/render_int.h

Issue 1507043004: Cleanup CPDF_DIBSource::LoadColorInfo() and ValidateDictParam(). (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years 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 side-by-side diff with in-line comments
Download patch
Index: core/src/fpdfapi/fpdf_render/render_int.h
diff --git a/core/src/fpdfapi/fpdf_render/render_int.h b/core/src/fpdfapi/fpdf_render/render_int.h
index dbc9f1102bc2236c432aa48f4a6d3cef65a08a2a..2a9f922aac36ae6648c3a923da8c790518e55f5f 100644
--- a/core/src/fpdfapi/fpdf_render/render_int.h
+++ b/core/src/fpdfapi/fpdf_render/render_int.h
@@ -560,8 +560,8 @@ class CPDF_DIBSource : public CFX_DIBSource {
FX_BOOL m_bHasMask;
private:
- FX_BOOL LoadColorInfo(CPDF_Dictionary* pFormResources,
- CPDF_Dictionary* pPageResources);
+ bool LoadColorInfo(const CPDF_Dictionary* pFormResources,
+ const CPDF_Dictionary* pPageResources);
DIB_COMP_DATA* GetDecodeAndMaskArray(FX_BOOL& bDefaultDecode,
FX_BOOL& bColorKey);
CPDF_DIBSource* LoadMask(FX_DWORD& MatteColor);

Powered by Google App Engine
This is Rietveld 408576698