Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(378)

Issue 4247043: PDF Type3 Support (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 3 months ago by Chris Guillory
Modified:
14 years, 3 months ago
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

PDF Type3 Support. Committed: http://code.google.com/p/skia/source/detail?r=892 Committed: http://code.google.com/p/skia/source/detail?r=893

Patch Set 1 #

Patch Set 2 : Windows is working with noticeable performance issues. #

Patch Set 3 : Works on linux now. Ready for review. Investigating performance issues. #

Total comments: 24

Patch Set 4 : Updated with comments from Steve. #

Total comments: 47

Patch Set 5 : Using Google copyright for new files. #

Patch Set 6 : Updated with more comments from Steve. #

Total comments: 23

Patch Set 7 : Updated with more comments from Steve. #

Total comments: 32

Patch Set 8 : Updated with more comments from Steve. #

Total comments: 11

Patch Set 9 : Rebased. Cleaned up fLastGlyphID usage. #

Patch Set 10 : Rebased. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+479 lines, -294 lines) Patch
M include/pdf/SkPDFDevice.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -11 lines 0 comments Download
M include/pdf/SkPDFFont.h View 1 2 3 4 5 6 7 8 5 chunks +21 lines, -11 lines 0 comments Download
M include/pdf/SkPDFImage.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
A include/pdf/SkPDFUtils.h View 1 2 3 4 5 6 1 chunk +50 lines, -0 lines 0 comments Download
M src/pdf/SkPDFDevice.cpp View 1 2 3 4 5 6 7 8 9 7 chunks +25 lines, -144 lines 0 comments Download
M src/pdf/SkPDFFont.cpp View 1 2 3 4 5 6 7 8 17 chunks +206 lines, -121 lines 2 comments Download
A src/pdf/SkPDFUtils.cpp View 1 2 3 4 5 6 7 8 1 chunk +160 lines, -0 lines 0 comments Download
M src/pdf/pdf_files.mk View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 2 comments Download
M src/ports/SkFontHost_win.cpp View 1 2 3 4 5 6 7 8 2 chunks +12 lines, -5 lines 0 comments Download
M vs/SampleApp/SampleApp.vcxproj View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 19
Chris Guillory
14 years, 3 months ago (2011-02-28 21:05:17 UTC) #1
Chris Guillory
14 years, 3 months ago (2011-02-28 23:54:52 UTC) #2
Steve VanDeBogart
http://codereview.appspot.com/4247043/diff/4001/src/pdf/SkPDFFont.cpp File src/pdf/SkPDFFont.cpp (right): http://codereview.appspot.com/4247043/diff/4001/src/pdf/SkPDFFont.cpp#newcode426 src/pdf/SkPDFFont.cpp:426: populateType3Font(fFirstGlyphID, fLastGlyphID); Maybe this should just set font type ...
14 years, 3 months ago (2011-03-01 01:22:01 UTC) #3
Chris Guillory
http://codereview.appspot.com/4247043/diff/4001/src/pdf/SkPDFFont.cpp File src/pdf/SkPDFFont.cpp (right): http://codereview.appspot.com/4247043/diff/4001/src/pdf/SkPDFFont.cpp#newcode426 src/pdf/SkPDFFont.cpp:426: populateType3Font(fFirstGlyphID, fLastGlyphID); On 2011/03/01 01:22:01, Steve VanDeBogart wrote: > ...
14 years, 3 months ago (2011-03-01 07:15:54 UTC) #4
reed1
For new files, lets standardize on the Google one: /* Copyright 2010 Google Inc. Licensed ...
14 years, 3 months ago (2011-03-01 18:38:51 UTC) #5
Chris Guillory
On 2011/03/01 18:38:51, reed1 wrote: > For new files, lets standardize on the Google one: ...
14 years, 3 months ago (2011-03-01 18:48:51 UTC) #6
Steve VanDeBogart
http://codereview.appspot.com/4247043/diff/8001/include/pdf/SkPDFDevice.h File include/pdf/SkPDFDevice.h (right): http://codereview.appspot.com/4247043/diff/8001/include/pdf/SkPDFDevice.h#newcode181 include/pdf/SkPDFDevice.h:181: void appendRectangle(SkScalar x, SkScalar y, SkScalar w, SkScalar h); ...
14 years, 3 months ago (2011-03-01 21:27:47 UTC) #7
Chris Guillory
PDF viewer is having trouble when SkString::appendScalar appends values using scientific notation. http://codereview.appspot.com/4247043/diff/8001/include/pdf/SkPDFDevice.h File include/pdf/SkPDFDevice.h ...
14 years, 3 months ago (2011-03-02 00:02:25 UTC) #8
Steve VanDeBogart
http://codereview.appspot.com/4247043/diff/8001/include/pdf/SkPDFUtils.h File include/pdf/SkPDFUtils.h (right): http://codereview.appspot.com/4247043/diff/8001/include/pdf/SkPDFUtils.h#newcode28 include/pdf/SkPDFUtils.h:28: static void MoveTo(SkScalar x, SkScalar y, SkString& content); On ...
14 years, 3 months ago (2011-03-02 02:41:55 UTC) #9
Chris Guillory
http://codereview.appspot.com/4247043/diff/2015/include/pdf/SkPDFUtils.h File include/pdf/SkPDFUtils.h (right): http://codereview.appspot.com/4247043/diff/2015/include/pdf/SkPDFUtils.h#newcode17 include/pdf/SkPDFUtils.h:17: #ifndef SkPDFUTILS_DEFINED On 2011/03/02 02:41:55, Steve VanDeBogart wrote: > ...
14 years, 3 months ago (2011-03-02 05:13:35 UTC) #10
Steve VanDeBogart
I'm sorry for the death by a thousand papercuts! http://codereview.appspot.com/4247043/diff/2015/src/pdf/SkPDFFont.cpp File src/pdf/SkPDFFont.cpp (right): http://codereview.appspot.com/4247043/diff/2015/src/pdf/SkPDFFont.cpp#newcode582 src/pdf/SkPDFFont.cpp:582: ...
14 years, 3 months ago (2011-03-02 19:43:10 UTC) #11
Chris Guillory
Change is now dependent on http://codereview.appspot.com/4261042. http://codereview.appspot.com/4247043/diff/9003/include/pdf/SkPDFFont.h File include/pdf/SkPDFFont.h (right): http://codereview.appspot.com/4247043/diff/9003/include/pdf/SkPDFFont.h#newcode40 include/pdf/SkPDFFont.h:40: /* Returns the ...
14 years, 3 months ago (2011-03-03 00:29:16 UTC) #12
Chris Guillory
http://codereview.appspot.com/4247043/diff/13004/src/pdf/SkPDFFont.cpp File src/pdf/SkPDFFont.cpp (right): http://codereview.appspot.com/4247043/diff/13004/src/pdf/SkPDFFont.cpp#newcode630 src/pdf/SkPDFFont.cpp:630: SkRefPtr<SkPDFArray> bboxArray = new SkPDFArray(); This line has been ...
14 years, 3 months ago (2011-03-03 00:33:40 UTC) #13
Steve VanDeBogart
LGTM with a few minor fixes. http://codereview.appspot.com/4247043/diff/13004/src/pdf/SkPDFFont.cpp File src/pdf/SkPDFFont.cpp (right): http://codereview.appspot.com/4247043/diff/13004/src/pdf/SkPDFFont.cpp#newcode571 src/pdf/SkPDFFont.cpp:571: const SkAdvancedTypefaceMetrics::WidthRange* widthRangeEntry ...
14 years, 3 months ago (2011-03-03 01:05:40 UTC) #14
Chris Guillory
http://codereview.appspot.com/4247043/diff/13004/src/pdf/SkPDFFont.cpp File src/pdf/SkPDFFont.cpp (right): http://codereview.appspot.com/4247043/diff/13004/src/pdf/SkPDFFont.cpp#newcode571 src/pdf/SkPDFFont.cpp:571: const SkAdvancedTypefaceMetrics::WidthRange* widthRangeEntry = NULL; On 2011/03/03 01:05:40, Steve ...
14 years, 3 months ago (2011-03-03 01:46:31 UTC) #15
Steve VanDeBogart
http://codereview.appspot.com/4247043/diff/13004/src/pdf/SkPDFFont.cpp File src/pdf/SkPDFFont.cpp (right): http://codereview.appspot.com/4247043/diff/13004/src/pdf/SkPDFFont.cpp#newcode571 src/pdf/SkPDFFont.cpp:571: const SkAdvancedTypefaceMetrics::WidthRange* widthRangeEntry = NULL; On 2011/03/03 01:46:31, Chris ...
14 years, 3 months ago (2011-03-03 02:57:53 UTC) #16
Chris Guillory
Cleaned up fLastGlyphID usage.
14 years, 3 months ago (2011-03-04 20:03:53 UTC) #17
Steve VanDeBogart
LGTM with two minor things. http://codereview.appspot.com/4247043/diff/24001/src/pdf/SkPDFFont.cpp File src/pdf/SkPDFFont.cpp (right): http://codereview.appspot.com/4247043/diff/24001/src/pdf/SkPDFFont.cpp#newcode613 src/pdf/SkPDFFont.cpp:613: if (fFontInfo->fLastGlyphID <= 255) ...
14 years, 3 months ago (2011-03-04 21:28:54 UTC) #18
Chris Guillory
14 years, 3 months ago (2011-03-04 21:36:54 UTC) #19
Thanks.

http://codereview.appspot.com/4247043/diff/24001/src/pdf/SkPDFFont.cpp
File src/pdf/SkPDFFont.cpp (right):

http://codereview.appspot.com/4247043/diff/24001/src/pdf/SkPDFFont.cpp#newcod...
src/pdf/SkPDFFont.cpp:613: if (fFontInfo->fLastGlyphID <= 255)
On 2011/03/04 21:28:54, Steve VanDeBogart wrote:
> We need this if clause at the end of populateType3Font as well.

Done.

http://codereview.appspot.com/4247043/diff/24001/src/pdf/pdf_files.mk
File src/pdf/pdf_files.mk (right):

http://codereview.appspot.com/4247043/diff/24001/src/pdf/pdf_files.mk#newcode12
src/pdf/pdf_files.mk:12: SkPDFUtils.cpp \
On 2011/03/04 21:28:54, Steve VanDeBogart wrote:
> trailing \ without a following newline may break things.  Convention for these
> files in no \ on the last line.

Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b