summaryrefslogtreecommitdiff
path: root/core/fpdfapi
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-09-27 16:48:11 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-09-27 16:48:11 +0000
commit2b4d11c0f13384ede1954c56264acd5da176465c (patch)
treeee000d940aa6675310d47b95956763aed31552ac /core/fpdfapi
parent072d829e2cd1586645022498a01a61db83a2db4d (diff)
downloadpdfium-2b4d11c0f13384ede1954c56264acd5da176465c.tar.xz
Shading functions should take const matrix pointers.chromium/3568chromium/3567chromium/3566chromium/3565chromium/3564
Change-Id: If13cc70d3d047f255f5d289f35a8533811523146 Reviewed-on: https://pdfium-review.googlesource.com/43110 Commit-Queue: Ryan Harrison <rharrison@chromium.org> Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core/fpdfapi')
-rw-r--r--core/fpdfapi/render/cpdf_renderstatus.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/fpdfapi/render/cpdf_renderstatus.cpp b/core/fpdfapi/render/cpdf_renderstatus.cpp
index b801c19c53..fd2897eaa4 100644
--- a/core/fpdfapi/render/cpdf_renderstatus.cpp
+++ b/core/fpdfapi/render/cpdf_renderstatus.cpp
@@ -144,7 +144,7 @@ void GetShadingSteps(float t_min,
}
void DrawAxialShading(const RetainPtr<CFX_DIBitmap>& pBitmap,
- CFX_Matrix* pObject2Bitmap,
+ const CFX_Matrix* pObject2Bitmap,
const CPDF_Dictionary* pDict,
const std::vector<std::unique_ptr<CPDF_Function>>& funcs,
const CPDF_ColorSpace* pCS,
@@ -214,7 +214,7 @@ void DrawAxialShading(const RetainPtr<CFX_DIBitmap>& pBitmap,
}
void DrawRadialShading(const RetainPtr<CFX_DIBitmap>& pBitmap,
- CFX_Matrix* pObject2Bitmap,
+ const CFX_Matrix* pObject2Bitmap,
const CPDF_Dictionary* pDict,
const std::vector<std::unique_ptr<CPDF_Function>>& funcs,
const CPDF_ColorSpace* pCS,
@@ -317,7 +317,7 @@ void DrawRadialShading(const RetainPtr<CFX_DIBitmap>& pBitmap,
}
void DrawFuncShading(const RetainPtr<CFX_DIBitmap>& pBitmap,
- CFX_Matrix* pObject2Bitmap,
+ const CFX_Matrix* pObject2Bitmap,
const CPDF_Dictionary* pDict,
const std::vector<std::unique_ptr<CPDF_Function>>& funcs,
const CPDF_ColorSpace* pCS,
@@ -477,7 +477,7 @@ void DrawGouraud(const RetainPtr<CFX_DIBitmap>& pBitmap,
void DrawFreeGouraudShading(
const RetainPtr<CFX_DIBitmap>& pBitmap,
- CFX_Matrix* pObject2Bitmap,
+ const CFX_Matrix* pObject2Bitmap,
const CPDF_Stream* pShadingStream,
const std::vector<std::unique_ptr<CPDF_Function>>& funcs,
const CPDF_ColorSpace* pCS,
@@ -518,7 +518,7 @@ void DrawFreeGouraudShading(
void DrawLatticeGouraudShading(
const RetainPtr<CFX_DIBitmap>& pBitmap,
- CFX_Matrix* pObject2Bitmap,
+ const CFX_Matrix* pObject2Bitmap,
const CPDF_Stream* pShadingStream,
const std::vector<std::unique_ptr<CPDF_Function>>& funcs,
const CPDF_ColorSpace* pCS,
@@ -836,7 +836,7 @@ struct CPDF_PatchDrawer {
void DrawCoonPatchMeshes(
ShadingType type,
const RetainPtr<CFX_DIBitmap>& pBitmap,
- CFX_Matrix* pObject2Bitmap,
+ const CFX_Matrix* pObject2Bitmap,
const CPDF_Stream* pShadingStream,
const std::vector<std::unique_ptr<CPDF_Function>>& funcs,
const CPDF_ColorSpace* pCS,