Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(384)

Issue 2281683002: Rework CFX_CountRef in terms of CFX_RetainPtr (Closed)

Created:
4 years, 3 months ago by Tom Sepez
Modified:
4 years, 3 months ago
Reviewers:
Lei Zhang
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Rework CFX_CountRef in terms of CFX_RetainPtr. Make use of existing ref count work rather than re-inventing it. Committed: https://pdfium.googlesource.com/pdfium/+/80f9957fe156bd8e940499491ca8167fe7dad416

Patch Set 1 #

Patch Set 2 : pass by const ref #

Patch Set 3 : Move to own file #

Patch Set 4 : rebase #

Patch Set 5 : Add tests #

Patch Set 6 : Tinkering, make CountedObj protected #

Patch Set 7 : Add test that GetModify() may construct a duplicate #

Unified diffs Side-by-side diffs Delta from patch set Stats (+211 lines, -71 lines) Patch
M BUILD.gn View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_colorstate.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_contentmark.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M core/fpdfapi/fpdf_page/include/cpdf_path.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
A core/fxcrt/cfx_count_ref_unittest.cpp View 1 2 3 4 5 6 1 chunk +129 lines, -0 lines 0 comments Download
A core/fxcrt/include/cfx_count_ref.h View 1 2 3 4 5 1 chunk +74 lines, -0 lines 0 comments Download
M core/fxcrt/include/fx_basic.h View 1 2 1 chunk +0 lines, -69 lines 0 comments Download
M core/fxge/include/fx_dib.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (17 generated)
Tom Sepez
Lei, for review. Start with PS#2, the rest is just moving things around.
4 years, 3 months ago (2016-08-25 19:08:38 UTC) #11
Lei Zhang
Looks ok. Should we add some unit tests?
4 years, 3 months ago (2016-08-25 22:45:57 UTC) #14
Tom Sepez
On 2016/08/25 22:45:57, Lei Zhang wrote: > Looks ok. Should we add some unit tests? ...
4 years, 3 months ago (2016-08-26 00:04:41 UTC) #15
Lei Zhang
lgtm
4 years, 3 months ago (2016-08-26 00:41:51 UTC) #16
Tom Sepez
Lei, tinkering, also add test for "Copy On Write" path.
4 years, 3 months ago (2016-08-26 17:37:13 UTC) #19
Lei Zhang
even better, still lgtm
4 years, 3 months ago (2016-08-26 17:43:10 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2281683002/120001
4 years, 3 months ago (2016-08-26 17:47:50 UTC) #23
commit-bot: I haz the power
4 years, 3 months ago (2016-08-26 17:59:08 UTC) #25
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://pdfium.googlesource.com/pdfium/+/80f9957fe156bd8e940499491ca8167fe7da...

Powered by Google App Engine
This is Rietveld 408576698