diff options
author | Henrique Nakashima <hnakashima@chromium.org> | 2018-07-05 15:39:59 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-07-05 15:39:59 +0000 |
commit | 86b4f67d40c351ea8e67ba7b7dcc9d8dd7ad371e (patch) | |
tree | 54881ef1ca024cd369862cff584b5fd434c1a183 /fxjs/cjs_scalehow.cpp | |
parent | d774a73b59ac36d533064041196d051c032eee6b (diff) | |
download | pdfium-86b4f67d40c351ea8e67ba7b7dcc9d8dd7ad371e.tar.xz |
Replace SharedCopyOnWrite<MarkData> with RetainPtr
A RetainPtr is already used inside SharedCopyOnWrite, and the API
that CPDF_ContentMark offers is not intuitive. AddMark() and
RemoveLastMark() currently copy the MarkData.
The new API does not perform these copies, but rather leaves it to
the client code.
This is the first step to make CPDF_ContentMarkItems modifiable. As
long as they are inside a SharedCopyOnWrite, they cannot be changed.
Bug: pdfium:1037
Change-Id: I0cd6334b0b8db62070b4412f1d6d1c88bce9891f
Reviewed-on: https://pdfium-review.googlesource.com/37132
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'fxjs/cjs_scalehow.cpp')
0 files changed, 0 insertions, 0 deletions