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

Issue 1539983002: Remove CFX_MapPtrToPtr in CFX_PageRenderCache (Closed)

Created:
5 years ago by Tom Sepez
Modified:
5 years ago
Reviewers:
Lei Zhang
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@xfa
Target Ref:
refs/heads/xfa
Visibility:
Public.

Description

Remove CFX_MapPtrToPtr in CFX_PageRenderCache Rename CPDF_ImageCache to CPDF_ImageCacheEntry because it represents a single entry, not the entire cache itself. Delete unused ClearRenderCache method, and merge cache entry clear() into its dtor. Fix a broken size calculation. R=thestig@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/0fa6fee0e48af8681f0cd50f6a9471ecc0a46c11

Patch Set 1 #

Patch Set 2 : Renames #

Patch Set 3 : Dubious size calculation #

Patch Set 4 : Make method protected. #

Total comments: 9

Patch Set 5 : Address review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -193 lines) Patch
M core/include/fpdfapi/fpdf_page.h View 3 chunks +0 lines, -13 lines 0 comments Download
M core/include/fpdfapi/fpdf_render.h View 1 2 3 4 4 chunks +19 lines, -19 lines 0 comments Download
M core/src/fpdfapi/fpdf_render/fpdf_render_cache.cpp View 1 2 3 4 10 chunks +114 lines, -145 lines 0 comments Download
M core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp View 1 2 chunks +14 lines, -10 lines 0 comments Download
M core/src/fpdfapi/fpdf_render/render_int.h View 1 2 3 4 5 chunks +7 lines, -6 lines 0 comments Download

Messages

Total messages: 9 (5 generated)
Tom Sepez
Lei, for review.
5 years ago (2015-12-18 20:24:00 UTC) #4
Lei Zhang
lgtm https://codereview.chromium.org/1539983002/diff/60001/core/include/fpdfapi/fpdf_render.h File core/include/fpdfapi/fpdf_render.h (right): https://codereview.chromium.org/1539983002/diff/60001/core/include/fpdfapi/fpdf_render.h#newcode220 core/include/fpdfapi/fpdf_render.h:220: CPDF_PageRenderCache(CPDF_Page* pPage) explicit? https://codereview.chromium.org/1539983002/diff/60001/core/src/fpdfapi/fpdf_render/fpdf_render_cache.cpp File core/src/fpdfapi/fpdf_render/fpdf_render_cache.cpp (right): https://codereview.chromium.org/1539983002/diff/60001/core/src/fpdfapi/fpdf_render/fpdf_render_cache.cpp#newcode33 ...
5 years ago (2015-12-18 22:33:24 UTC) #6
Tom Sepez
https://codereview.chromium.org/1539983002/diff/60001/core/include/fpdfapi/fpdf_render.h File core/include/fpdfapi/fpdf_render.h (right): https://codereview.chromium.org/1539983002/diff/60001/core/include/fpdfapi/fpdf_render.h#newcode220 core/include/fpdfapi/fpdf_render.h:220: CPDF_PageRenderCache(CPDF_Page* pPage) On 2015/12/18 22:33:24, Lei Zhang wrote: > ...
5 years ago (2015-12-18 22:52:37 UTC) #7
Tom Sepez
5 years ago (2015-12-18 22:53:36 UTC) #9
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
0fa6fee0e48af8681f0cd50f6a9471ecc0a46c11 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698