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

Issue 2301263003: Make CPDF_ClipPath have a CPDF_ClipPathData rather than inheriting (Closed)

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

Description

Make CPDF_ClipPath have a CPDF_ClipPathData rather than inheriting. Make Data private to the ClipPath class which manages it transparently for its callers. This prevents the callers from having to remember to make a copy before dirtying the shared data, since the operations that modify state will do this under the covers for us. Committed: https://pdfium.googlesource.com/pdfium/+/d21f22e2c07d61bf15ee3af91869901adb6f0cde

Patch Set 1 #

Patch Set 2 : comment #

Patch Set 3 : rebase #

Patch Set 4 : Speculative fix: operator== #

Patch Set 5 : safe bool while we're at it #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -72 lines) Patch
M BUILD.gn View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_clippath.cpp View 5 chunks +29 lines, -8 lines 0 comments Download
D core/fpdfapi/fpdf_page/cpdf_clippathdata.h View 1 chunk +0 lines, -30 lines 0 comments Download
D core/fpdfapi/fpdf_page/cpdf_clippathdata.cpp View 1 chunk +0 lines, -24 lines 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_pageobject.cpp View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_shadingobject.cpp View 1 chunk +2 lines, -3 lines 0 comments Download
M core/fpdfapi/fpdf_page/include/cpdf_clippath.h View 1 2 3 4 2 chunks +35 lines, -3 lines 0 comments Download
M core/fxcrt/include/cfx_count_ref.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M fpdfsdk/fpdf_transformpage.cpp View 1 2 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 23 (15 generated)
Tom Sepez
Dan, for review. This one was almost there already.
4 years, 3 months ago (2016-09-01 23:03:13 UTC) #3
Tom Sepez
Lei, for review, since Dan is already gone.
4 years, 3 months ago (2016-09-02 17:53:12 UTC) #4
Tom Sepez
Really adding Lei.
4 years, 3 months ago (2016-09-02 20:15:04 UTC) #8
Lei Zhang
lgtm
4 years, 3 months ago (2016-09-02 22:04:11 UTC) #9
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/2301263003/40001
4 years, 3 months ago (2016-09-02 22:47:27 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_no_v8 on master.tryserver.client.pdfium (JOB_FAILED, https://build.chromium.org/p/tryserver.client.pdfium/builders/linux_no_v8/builds/1953)
4 years, 3 months ago (2016-09-02 22:57:58 UTC) #14
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/2301263003/80001
4 years, 3 months ago (2016-09-03 00:13:50 UTC) #21
commit-bot: I haz the power
4 years, 3 months ago (2016-09-03 00:34:24 UTC) #23
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://pdfium.googlesource.com/pdfium/+/d21f22e2c07d61bf15ee3af91869901adb6f...

Powered by Google App Engine
This is Rietveld 408576698