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

Issue 83183004: Simplify SkPdfTokenLooper behavior. (Closed)

Created:
7 years, 1 month ago by scroggo
Modified:
7 years ago
Reviewers:
mtklein
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Simplify SkPdfTokenLooper behavior. Instead of passing a pointer to a pointer to a NULL looper, which can then be set to point to a new looper (which then must be looped and deleted), pass a pointer to the current looper. Each function can then create a looper based on the parent (on the stack) and call loop() itself. Remove setUp(). Now that there is a pointer to the parent at creation time, there is no need for this function. Modify the constructors to only provide ones that are needed. Add documentation. Remove PdfInlineImageLooper::done(), which is never used. R=mtklein@google.com Committed: https://code.google.com/p/skia/source/detail?r=12447

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 14

Patch Set 5 : respond to comments (explicit and unused parameter) #

Patch Set 6 : Rebase #

Total comments: 2

Patch Set 7 : Respond to comment (FIXME) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -138 lines) Patch
M experimental/PdfViewer/inc/SkPdfTokenLooper.h View 1 2 3 4 5 6 1 chunk +40 lines, -17 lines 0 comments Download
M experimental/PdfViewer/src/SkPdfContext.cpp View 1 2 3 4 5 3 chunks +9 lines, -14 lines 0 comments Download
M experimental/PdfViewer/src/SkPdfOps.h View 5 1 chunk +1 line, -1 line 0 comments Download
M experimental/PdfViewer/src/SkPdfRenderer.cpp View 1 2 3 4 5 57 chunks +114 lines, -106 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
scroggo
7 years, 1 month ago (2013-11-22 17:37:36 UTC) #1
mtklein
Nits only. Big improvement! lgtm https://codereview.chromium.org/83183004/diff/110001/experimental/PdfViewer/inc/SkPdfTokenLooper.h File experimental/PdfViewer/inc/SkPdfTokenLooper.h (right): https://codereview.chromium.org/83183004/diff/110001/experimental/PdfViewer/inc/SkPdfTokenLooper.h#newcode41 experimental/PdfViewer/inc/SkPdfTokenLooper.h:41: SkPdfTokenLooper(SkPdfTokenLooper* parent) explicit? https://codereview.chromium.org/83183004/diff/110001/experimental/PdfViewer/src/SkPdfRenderer.cpp ...
7 years, 1 month ago (2013-11-22 18:04:37 UTC) #2
scroggo
https://codereview.chromium.org/83183004/diff/110001/experimental/PdfViewer/inc/SkPdfTokenLooper.h File experimental/PdfViewer/inc/SkPdfTokenLooper.h (right): https://codereview.chromium.org/83183004/diff/110001/experimental/PdfViewer/inc/SkPdfTokenLooper.h#newcode41 experimental/PdfViewer/inc/SkPdfTokenLooper.h:41: SkPdfTokenLooper(SkPdfTokenLooper* parent) On 2013/11/22 18:04:37, mtklein wrote: > explicit? ...
7 years ago (2013-12-02 21:19:53 UTC) #3
mtklein
lgtm, and as seems to be usual now, a suggestion for the next round of ...
7 years ago (2013-12-02 21:28:08 UTC) #4
scroggo
https://codereview.chromium.org/83183004/diff/190001/experimental/PdfViewer/inc/SkPdfTokenLooper.h File experimental/PdfViewer/inc/SkPdfTokenLooper.h (right): https://codereview.chromium.org/83183004/diff/190001/experimental/PdfViewer/inc/SkPdfTokenLooper.h#newcode29 experimental/PdfViewer/inc/SkPdfTokenLooper.h:29: SkPdfTokenLooper(SkPdfNativeTokenizer* tokenizer, On 2013/12/02 21:28:08, mtklein wrote: > This ...
7 years ago (2013-12-02 22:34:28 UTC) #5
scroggo
7 years ago (2013-12-02 22:34:51 UTC) #6
Message was sent while issue was closed.
Committed patchset #7 manually as r12447 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698