Unreviewed changes
3 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: core/fpdfapi/render/cpdf_renderstatus.cpp
Insertions: 3, Deletions: 3.
@@ -1519,15 +1519,15 @@
return result_mask;
}
- size_t size = Fx2DSizeOrDie(dest_pitch, height);
+ src_buf = src_buf.first(Fx2DSizeOrDie(dest_pitch, height));
if (pFunc) {
- for (auto [in, out] : fxcrt::Zip(src_buf.first(size), dest_buf)) {
+ for (auto [in, out] : fxcrt::Zip(src_buf, dest_buf)) {
out = transfers[in];
}
return result_mask;
}
- fxcrt::Copy(src_buf.first(size), dest_buf);
+ fxcrt::Copy(src_buf, dest_buf);
return result_mask;
}
```
Change information
Commit message:
Use fxcrt::Zip() in PDF_RenderStatus::LoadSMask().
Avoid some bounds checking during iteration.
-- Avoid some else-clauses while at it.
Change-Id: Id48e4af24ae7d8abad5d18be438c24fd872df92f
Files:
- M core/fpdfapi/render/cpdf_renderstatus.cpp
Change size: S
Delta: 1 file changed, 13 insertions(+), 8 deletions(-)
Branch: refs/heads/main
Submit Requirements:
Code-Review: +1 by Lei Zhang