diff options
author | Lei Zhang <thestig@chromium.org> | 2018-10-09 19:13:55 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-10-09 19:13:55 +0000 |
commit | 09ee087b894679ff7bc6bc17c7e8a8410e00f8b5 (patch) | |
tree | 7558e4680970e1657c9769785317d3d63cd6de69 /fpdfsdk/cpdfsdk_pageview.h | |
parent | f9718052794c4669a4f99d8f798806c9730a9e36 (diff) | |
download | pdfium-09ee087b894679ff7bc6bc17c7e8a8410e00f8b5.tar.xz |
Pass CFX_Matrix by const-ref in various OnDraw() methods.
Change-Id: I6e953206520c024b2fc23b9b60c5c43112d04896
Reviewed-on: https://pdfium-review.googlesource.com/c/43603
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fpdfsdk/cpdfsdk_pageview.h')
-rw-r--r-- | fpdfsdk/cpdfsdk_pageview.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fpdfsdk/cpdfsdk_pageview.h b/fpdfsdk/cpdfsdk_pageview.h index 46c35e1e2d..4674c1bbb8 100644 --- a/fpdfsdk/cpdfsdk_pageview.h +++ b/fpdfsdk/cpdfsdk_pageview.h @@ -26,7 +26,7 @@ class CPDFSDK_PageView final : public CPDF_Page::View { ~CPDFSDK_PageView(); void PageView_OnDraw(CFX_RenderDevice* pDevice, - CFX_Matrix* pUser2Device, + const CFX_Matrix& mtUser2Device, CPDF_RenderOptions* pOptions, const FX_RECT& pClip); @@ -88,8 +88,8 @@ class CPDFSDK_PageView final : public CPDF_Page::View { int GetPageIndex() const; void SetValid(bool bValid) { m_bValid = bValid; } - bool IsValid() { return m_bValid; } - bool IsLocked() { return m_bLocked; } + bool IsValid() const { return m_bValid; } + bool IsLocked() const { return m_bLocked; } void SetBeingDestroyed() { m_bBeingDestroyed = true; } bool IsBeingDestroyed() const { return m_bBeingDestroyed; } void TakePageOwnership() { m_pOwnsPage.Reset(ToPDFPage(m_page)); } |