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

Issue 2008553008: Remove CFX_PrivateData from CPDF_Page (Closed)

Created:
4 years, 7 months ago by Tom Sepez
Modified:
4 years, 7 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

Remove CFX_PrivateData from CPDF_Page CFX_PrivateData served two purposes here: The first was to hold an opaque pointer to the corresponding page structure in the next higher layer, of which it knows no details. Introduce an empty CPDF_Page::View class to represent this higher class, so as to get type safety while preserving layering. The second was to hold an opaque render context, which it also happened to own. Make this a CFX_Deletable to help with management. Also remove an unused inheritance from CFX_PrivateData in CPDF_Annot. Committed: https://pdfium.googlesource.com/pdfium/+/1e2c557e0fa0e47c8bafdb31c833ea4f90f5fedd

Patch Set 1 #

Patch Set 2 : Fix non-XFA build. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -38 lines) Patch
M core/fpdfapi/fpdf_page/cpdf_page.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M core/fpdfapi/fpdf_page/include/cpdf_page.h View 1 3 chunks +13 lines, -1 line 0 comments Download
M core/fpdfdoc/include/fpdf_doc.h View 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/fpdf_progressive.cpp View 3 chunks +10 lines, -8 lines 0 comments Download
M fpdfsdk/fpdfview.cpp View 1 5 chunks +18 lines, -22 lines 0 comments Download
M fpdfsdk/fsdk_mgr.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M fpdfsdk/include/fsdk_define.h View 1 chunk +0 lines, -1 line 0 comments Download
M fpdfsdk/include/fsdk_mgr.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M fpdfsdk/include/fsdk_rendercontext.h View 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (9 generated)
Tom Sepez
Lei, for review.
4 years, 7 months ago (2016-05-25 00:01:44 UTC) #2
Lei Zhang
lgtm
4 years, 7 months ago (2016-05-25 01:25:18 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2008553008/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2008553008/1
4 years, 7 months ago (2016-05-25 20:32:25 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: mac_no_v8 on master.tryserver.client.pdfium (JOB_FAILED, https://build.chromium.org/p/tryserver.client.pdfium/builders/mac_no_v8/builds/767) win on master.tryserver.client.pdfium (JOB_FAILED, ...
4 years, 7 months ago (2016-05-25 20:34:35 UTC) #7
Tom Sepez
Lei, please re-review. I had to add some code to cover one usage in the ...
4 years, 7 months ago (2016-05-25 21:45:10 UTC) #11
Lei Zhang
lgtm
4 years, 7 months ago (2016-05-25 21:50:24 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2008553008/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2008553008/20001
4 years, 7 months ago (2016-05-25 21:57:51 UTC) #15
commit-bot: I haz the power
4 years, 7 months ago (2016-05-25 21:58:15 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://pdfium.googlesource.com/pdfium/+/1e2c557e0fa0e47c8bafdb31c833ea4f90f5...

Powered by Google App Engine
This is Rietveld 408576698