summaryrefslogtreecommitdiff
path: root/core/fpdfapi/render/cpdf_docrenderdata.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-10-04 14:22:18 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-10-04 18:33:08 +0000
commit3878e1a206db89f8a9e38c72e7557fab04f96aa5 (patch)
treee104af570d82ccb8338d514f60f9da4a2828c96b /core/fpdfapi/render/cpdf_docrenderdata.cpp
parent643266cc8eb98ac680d838a2c5bc2dc8c25a9b08 (diff)
downloadpdfium-3878e1a206db89f8a9e38c72e7557fab04f96aa5.tar.xz
Make CPDF_TransferFunc members private
This CL moves the member variables of CPDF_TransferFunc to be private from public and adds accessors as needed. Change-Id: Ib5158721bbe833727b333da794d774f17e4fdea7 Reviewed-on: https://pdfium-review.googlesource.com/15451 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfapi/render/cpdf_docrenderdata.cpp')
-rw-r--r--core/fpdfapi/render/cpdf_docrenderdata.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/fpdfapi/render/cpdf_docrenderdata.cpp b/core/fpdfapi/render/cpdf_docrenderdata.cpp
index 3b16013bc5..6480688f21 100644
--- a/core/fpdfapi/render/cpdf_docrenderdata.cpp
+++ b/core/fpdfapi/render/cpdf_docrenderdata.cpp
@@ -104,23 +104,23 @@ RetainPtr<CPDF_TransferFunc> CPDF_DocRenderData::GetTransferFunc(
if (o != v)
bIdentity = false;
for (int i = 0; i < 3; ++i)
- pTransfer->m_Samples[i * 256 + v] = o;
+ pTransfer->GetSamples()[i * 256 + v] = o;
continue;
}
for (int i = 0; i < 3; ++i) {
if (!pFuncs[i] || pFuncs[i]->CountOutputs() > kMaxOutputs) {
- pTransfer->m_Samples[i * 256 + v] = v;
+ pTransfer->GetSamples()[i * 256 + v] = v;
continue;
}
pFuncs[i]->Call(&input, 1, output, &noutput);
int o = FXSYS_round(output[0] * 255);
if (o != v)
bIdentity = false;
- pTransfer->m_Samples[i * 256 + v] = o;
+ pTransfer->GetSamples()[i * 256 + v] = o;
}
}
- pTransfer->m_bIdentity = bIdentity;
+ pTransfer->SetIdentity(bIdentity);
return pTransfer;
}