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

Issue 80463005: Separate and update PDF_DIFF_TRACE_IN_PNG (Closed)

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

Description

Separate and update PDF_DIFF_TRACE_IN_PNG Move its functionality out of readToken() and into its own class. Callers of the previous readToken() now call SkPdfNativeTokenizer::readToken(), which in turn calls a function for writing the diff to a file, if the caller requests it and PDF_TRACE_DIFF_IN_PNG is defined. Do not attempt to draw a diff for compatibility sections, which we do not draw. Use SkString to handle string manipulation. Hide globals only used by PDF_TRACE_DIFF_IN_PNG behind that flag. Remove hasVisualEffects, which always returns true. Rename gLastOpKeyword to gOpCounter for clarity. In SkPdfNativeTokenizer, set fEmpty to true when the entire stream has been read. Use SkBitmap::copyTo instead of manually copying an SkBitmap. Builds on https://codereview.chromium.org/79933003/ R=mtklein@google.com Committed: https://code.google.com/p/skia/source/detail?r=12436

Patch Set 1 #

Patch Set 2 : upload mismatch #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 4

Patch Set 5 : Respond to comments #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -176 lines) Patch
A experimental/PdfViewer/inc/SkPdfDiffEncoder.h View 1 2 3 4 1 chunk +25 lines, -0 lines 0 comments Download
M experimental/PdfViewer/inc/SkPdfTokenLooper.h View 1 2 3 1 chunk +0 lines, -6 lines 0 comments Download
M experimental/PdfViewer/pdf_viewer_main.cpp View 3 chunks +5 lines, -1 line 0 comments Download
M experimental/PdfViewer/pdfparser/native/SkPdfNativeTokenizer.h View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M experimental/PdfViewer/pdfparser/native/SkPdfNativeTokenizer.cpp View 1 2 3 4 3 chunks +15 lines, -6 lines 0 comments Download
M experimental/PdfViewer/src/SkPdfContext.cpp View 1 2 3 4 1 chunk +1 line, -4 lines 0 comments Download
A experimental/PdfViewer/src/SkPdfDiffEncoder.cpp View 1 2 1 chunk +131 lines, -0 lines 0 comments Download
M experimental/PdfViewer/src/SkPdfRenderer.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
D experimental/PdfViewer/src/SkPdfTokenLooper.cpp View 1 2 3 4 1 chunk +0 lines, -156 lines 0 comments Download
gyp/pdfviewer_lib.gyp View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
scroggo
7 years, 1 month ago (2013-11-21 21:42:45 UTC) #1
mtklein
Feel free to ignore all the comments in the first CL that this one makes ...
7 years, 1 month ago (2013-11-22 14:46:12 UTC) #2
scroggo
https://codereview.chromium.org/80463005/diff/150001/experimental/PdfViewer/inc/SkPdfDiffEncoder.h File experimental/PdfViewer/inc/SkPdfDiffEncoder.h (right): https://codereview.chromium.org/80463005/diff/150001/experimental/PdfViewer/inc/SkPdfDiffEncoder.h#newcode20 experimental/PdfViewer/inc/SkPdfDiffEncoder.h:20: static void WriteToFile(PdfToken*); On 2013/11/22 14:46:12, mtklein wrote: > ...
7 years, 1 month ago (2013-11-22 15:47:16 UTC) #3
mtklein
On 2013/11/22 15:47:16, scroggo wrote: > https://codereview.chromium.org/80463005/diff/150001/experimental/PdfViewer/inc/SkPdfDiffEncoder.h > File experimental/PdfViewer/inc/SkPdfDiffEncoder.h (right): > > https://codereview.chromium.org/80463005/diff/150001/experimental/PdfViewer/inc/SkPdfDiffEncoder.h#newcode20 > ...
7 years, 1 month ago (2013-11-22 15:51:49 UTC) #4
scroggo
7 years ago (2013-12-02 20:22:39 UTC) #5
Message was sent while issue was closed.
Committed patchset #6 manually as r12436 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698