diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-12-13 18:05:38 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-12-13 18:05:38 +0000 |
commit | e03171e52ec4232369ab3b46e11d3a0abe1eb630 (patch) | |
tree | 6a57f6a0948032e6ec387c22d8b462215e6ca1e4 /core/fpdfapi/page/cpdf_psfunc.cpp | |
parent | 8bbfdf2fca7197a0eccfef7b6fc27c590a44e7f7 (diff) | |
parent | 326d96bf5d52fdcf790b467b13f58ba3df3e81e4 (diff) | |
download | pdfium-e03171e52ec4232369ab3b46e11d3a0abe1eb630.tar.gz |
Merge cherrypicks of ['googleplex-android-review.googlesource.com/23916086'] into udc-platform-release.android-platform-14.0.0_r8android-platform-14.0.0_r7android-platform-14.0.0_r6android-platform-14.0.0_r5android-platform-14.0.0_r4android14-platform-release
Change-Id: If925f85c6a039b56ff549fd5327795f57b9cd12c
Diffstat (limited to 'core/fpdfapi/page/cpdf_psfunc.cpp')
-rw-r--r-- | core/fpdfapi/page/cpdf_psfunc.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/core/fpdfapi/page/cpdf_psfunc.cpp b/core/fpdfapi/page/cpdf_psfunc.cpp index ffc5053c1..60ec52bc0 100644 --- a/core/fpdfapi/page/cpdf_psfunc.cpp +++ b/core/fpdfapi/page/cpdf_psfunc.cpp @@ -1,4 +1,4 @@ -// Copyright 2017 PDFium Authors. All rights reserved. +// Copyright 2017 The PDFium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -11,16 +11,17 @@ CPDF_PSFunc::CPDF_PSFunc() : CPDF_Function(Type::kType4PostScript) {} -CPDF_PSFunc::~CPDF_PSFunc() {} +CPDF_PSFunc::~CPDF_PSFunc() = default; -bool CPDF_PSFunc::v_Init(const CPDF_Object* pObj, - std::set<const CPDF_Object*>* pVisited) { - auto pAcc = pdfium::MakeRetain<CPDF_StreamAcc>(pObj->AsStream()); +bool CPDF_PSFunc::v_Init(const CPDF_Object* pObj, VisitedSet* pVisited) { + auto pAcc = + pdfium::MakeRetain<CPDF_StreamAcc>(pdfium::WrapRetain(pObj->AsStream())); pAcc->LoadAllDataFiltered(); return m_PS.Parse(pAcc->GetSpan()); } -bool CPDF_PSFunc::v_Call(const float* inputs, float* results) const { +bool CPDF_PSFunc::v_Call(pdfium::span<const float> inputs, + pdfium::span<float> results) const { m_PS.Reset(); for (uint32_t i = 0; i < m_nInputs; i++) m_PS.Push(inputs[i]); |