diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-12-17 13:35:22 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-12-17 13:35:22 -0800 |
commit | 761660c4074269ac806d06c9bef70e4e9fb0eb29 (patch) | |
tree | 6ba6709f676261367161ab717f2dfe44eac89103 /core/include/fpdfdoc | |
parent | 0a9158b99a2002fb82301ebec20dbc23b3fc084c (diff) | |
download | pdfium-761660c4074269ac806d06c9bef70e4e9fb0eb29.tar.xz |
Tidy CPDF_RenderContext
- Remove unused Clear() method.
- Replace Create() with actual ctors.
- Avoid const casts.
- Protect members.
- Add missing const in adjacent code.
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1536623004 .
Diffstat (limited to 'core/include/fpdfdoc')
-rw-r--r-- | core/include/fpdfdoc/fpdf_doc.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/include/fpdfdoc/fpdf_doc.h b/core/include/fpdfdoc/fpdf_doc.h index 6163440674..4712f60706 100644 --- a/core/include/fpdfdoc/fpdf_doc.h +++ b/core/include/fpdfdoc/fpdf_doc.h @@ -400,14 +400,14 @@ class CPDF_Annot : public CFX_PrivateData { const CPDF_Dictionary* GetAnnotDict() const { return m_pAnnotDict; } CPDF_Dictionary* GetAnnotDict() { return m_pAnnotDict; } - FX_BOOL DrawAppearance(const CPDF_Page* pPage, + FX_BOOL DrawAppearance(CPDF_Page* pPage, CFX_RenderDevice* pDevice, const CFX_Matrix* pUser2Device, AppearanceMode mode, const CPDF_RenderOptions* pOptions); FX_BOOL DrawInContext(const CPDF_Page* pPage, - const CPDF_RenderContext* pContext, + CPDF_RenderContext* pContext, const CFX_Matrix* pUser2Device, AppearanceMode mode); @@ -431,7 +431,7 @@ class CPDF_AnnotList { explicit CPDF_AnnotList(CPDF_Page* pPage); ~CPDF_AnnotList(); - void DisplayAnnots(const CPDF_Page* pPage, + void DisplayAnnots(CPDF_Page* pPage, CPDF_RenderContext* pContext, FX_BOOL bPrinting, CFX_Matrix* pMatrix, @@ -440,7 +440,7 @@ class CPDF_AnnotList { DisplayAnnots(pPage, nullptr, pContext, bPrinting, pMatrix, bShowWidget ? 3 : 1, pOptions, nullptr); } - void DisplayAnnots(const CPDF_Page* pPage, + void DisplayAnnots(CPDF_Page* pPage, CFX_RenderDevice* pDevice, CPDF_RenderContext* pContext, FX_BOOL bPrinting, @@ -454,7 +454,7 @@ class CPDF_AnnotList { CPDF_Document* GetDocument() const { return m_pDocument; } protected: - void DisplayPass(const CPDF_Page* pPage, + void DisplayPass(CPDF_Page* pPage, CFX_RenderDevice* pDevice, CPDF_RenderContext* pContext, FX_BOOL bPrinting, |