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

Issue 4905051: Fix gm error. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 4 months ago by arthurhsu
Modified:
13 years, 4 months ago
Reviewers:
Steve VanDeBogart
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk
Visibility:
Public.

Description

Fix gm error. Use static function to avoid deferencing null pointer.

Patch Set 1 #

Patch Set 2 : Update per code review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+199 lines, -93 lines) Patch
M include/core/SkAdvancedTypefaceMetrics.h View 1 1 chunk +11 lines, -0 lines 0 comments Download
M include/core/SkFontHost.h View 8 chunks +18 lines, -12 lines 0 comments Download
M include/core/SkTypeface.h View 1 1 chunk +8 lines, -1 line 0 comments Download
M include/core/SkTypes.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M include/pdf/SkPDFFont.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/core/SkAdvancedTypefaceMetrics.cpp View 3 chunks +17 lines, -2 lines 0 comments Download
M src/core/SkTypeface.cpp View 2 chunks +8 lines, -3 lines 0 comments Download
M src/pdf/SkPDFFont.cpp View 1 9 chunks +63 lines, -18 lines 0 comments Download
M src/pdf/SkPDFFontImpl.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/ports/SkFontHost_FreeType.cpp View 1 5 chunks +11 lines, -4 lines 0 comments Download
M src/ports/SkFontHost_mac_atsui.cpp View 14 chunks +26 lines, -25 lines 0 comments Download
M src/ports/SkFontHost_mac_coretext.cpp View 1 11 chunks +26 lines, -24 lines 0 comments Download
M src/ports/SkFontHost_win.cpp View 1 2 chunks +8 lines, -2 lines 0 comments Download

Messages

Total messages: 4
arthurhsu
13 years, 4 months ago (2011-08-17 00:16:04 UTC) #1
Steve VanDeBogart
I think the problem is that a NULL typeface is a valid one, see ~SkPDFFont(). ...
13 years, 4 months ago (2011-08-17 20:31:36 UTC) #2
arthurhsu
Done.
13 years, 4 months ago (2011-08-17 23:02:08 UTC) #3
Steve VanDeBogart
13 years, 4 months ago (2011-08-18 02:39:16 UTC) #4
LGTM - committed as r2134.
Sign in to reply to this message.

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