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

Issue 966863002: PDF: Canon now owns a reference to all interned objects (Closed)

Created:
5 years, 9 months ago by hal.canary
Modified:
5 years, 9 months ago
Reviewers:
mtklein
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

PDF: Canon now owns a reference to all interned objects Add SkPDFCanon::reset function to unref all objects. No longer possible to remove object from canon Motivation: this doesn't change these object's lifetime, (they will still be fully unrefed when SkDocument::close() is called, but we no longer have to remove them from the array when their destructor is called. Committed: https://skia.googlesource.com/skia/+/2e3f9d8a9309686eeb4c76ccfde5800da87a68b3

Patch Set 1 #

Total comments: 2

Patch Set 2 : 2015-02-27 (Friday) 15:13:01 EST #

Patch Set 3 : 2015-02-27 (Friday) 15:27:08 EST #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -143 lines) Patch
M src/doc/SkDocument_PDF.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pdf/SkPDFBitmap.h View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M src/pdf/SkPDFBitmap.cpp View 1 2 2 chunks +4 lines, -5 lines 0 comments Download
M src/pdf/SkPDFCanon.h View 1 2 chunks +9 lines, -20 lines 0 comments Download
M src/pdf/SkPDFCanon.cpp View 1 7 chunks +22 lines, -47 lines 0 comments Download
M src/pdf/SkPDFFont.h View 1 2 1 chunk +1 line, -4 lines 0 comments Download
M src/pdf/SkPDFFont.cpp View 1 2 9 chunks +16 lines, -22 lines 0 comments Download
M src/pdf/SkPDFFontImpl.h View 1 2 4 chunks +4 lines, -8 lines 0 comments Download
M src/pdf/SkPDFGraphicState.h View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M src/pdf/SkPDFGraphicState.cpp View 1 2 3 chunks +5 lines, -9 lines 0 comments Download
M src/pdf/SkPDFShader.h View 1 2 3 chunks +3 lines, -6 lines 0 comments Download
M src/pdf/SkPDFShader.cpp View 1 2 5 chunks +10 lines, -16 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
hal.canary
PTAL
5 years, 9 months ago (2015-02-27 19:12:40 UTC) #2
mtklein
https://codereview.chromium.org/966863002/diff/1/src/pdf/SkPDFBitmap.cpp File src/pdf/SkPDFBitmap.cpp (right): https://codereview.chromium.org/966863002/diff/1/src/pdf/SkPDFBitmap.cpp#newcode316 src/pdf/SkPDFBitmap.cpp:316: canon->addBitmap(SkRef(pdfBitmap)); This seems to distribute the responsibility for refcounting ...
5 years, 9 months ago (2015-02-27 19:50:17 UTC) #3
hal.canary
On 2015/02/27 19:50:17, mtklein wrote: > https://codereview.chromium.org/966863002/diff/1/src/pdf/SkPDFBitmap.cpp > File src/pdf/SkPDFBitmap.cpp (right): > > https://codereview.chromium.org/966863002/diff/1/src/pdf/SkPDFBitmap.cpp#newcode316 > ...
5 years, 9 months ago (2015-02-27 19:51:31 UTC) #4
mtklein
On 2015/02/27 19:51:31, Hal Canary wrote: > On 2015/02/27 19:50:17, mtklein wrote: > > https://codereview.chromium.org/966863002/diff/1/src/pdf/SkPDFBitmap.cpp ...
5 years, 9 months ago (2015-02-27 19:57:09 UTC) #5
hal.canary
https://codereview.chromium.org/966863002/diff/1/src/pdf/SkPDFBitmap.cpp File src/pdf/SkPDFBitmap.cpp (right): https://codereview.chromium.org/966863002/diff/1/src/pdf/SkPDFBitmap.cpp#newcode316 src/pdf/SkPDFBitmap.cpp:316: canon->addBitmap(SkRef(pdfBitmap)); On 2015/02/27 19:50:17, mtklein wrote: > This seems ...
5 years, 9 months ago (2015-02-27 20:13:43 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/966863002/20001
5 years, 9 months ago (2015-02-27 20:14:16 UTC) #8
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
5 years, 9 months ago (2015-02-27 20:14:17 UTC) #9
mtklein
lgtm
5 years, 9 months ago (2015-02-27 20:15:26 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: Build-Ubuntu13.10-Clang-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu13.10-Clang-x86_64-Debug-Trybot/builds/2319)
5 years, 9 months ago (2015-02-27 20:16:26 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/966863002/40001
5 years, 9 months ago (2015-02-27 20:34:15 UTC) #15
commit-bot: I haz the power
5 years, 9 months ago (2015-02-27 20:41:09 UTC) #16
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/2e3f9d8a9309686eeb4c76ccfde5800da87a68b3

Powered by Google App Engine
This is Rietveld 408576698