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

Issue 5656066: Fix TypefaceCache race. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 10 months ago by bungeman
Modified:
12 years, 10 months ago
Reviewers:
reed1
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Patch Set 1 #

Total comments: 8

Patch Set 2 : Document existing assumptions to reduce change. #

Patch Set 3 : Change name of FindByProc to reflect new behavior. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -20 lines) Patch
M src/core/SkTypefaceCache.h View 1 2 2 chunks +17 lines, -9 lines 0 comments Download
M src/core/SkTypefaceCache.cpp View 1 2 1 chunk +5 lines, -2 lines 0 comments Download
M src/ports/SkFontHost_mac_coretext.cpp View 1 2 1 chunk +2 lines, -4 lines 0 comments Download
M src/ports/SkFontHost_win.cpp View 1 2 2 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 6
bungeman
This fixes a potential race condition in SkTypefaceCache since the static methods which return SkTypeface ...
12 years, 10 months ago (2012-02-15 19:21:31 UTC) #1
reed1
http://codereview.appspot.com/5656066/diff/1/src/core/SkTypefaceCache.h File src/core/SkTypefaceCache.h (left): http://codereview.appspot.com/5656066/diff/1/src/core/SkTypefaceCache.h#oldcode46 src/core/SkTypefaceCache.h:46: static SkTypeface* FindByID(SkFontID fontID); Rename to FindAndRefByID, or RefByID ...
12 years, 10 months ago (2012-02-15 20:52:45 UTC) #2
bungeman
Reverted and documented reasoning and behavior of FindByID. http://codereview.appspot.com/5656066/diff/1/src/core/SkTypefaceCache.h File src/core/SkTypefaceCache.h (left): http://codereview.appspot.com/5656066/diff/1/src/core/SkTypefaceCache.h#oldcode46 src/core/SkTypefaceCache.h:46: static ...
12 years, 10 months ago (2012-02-15 21:57:53 UTC) #3
reed1
I see that you reverted the relevant change, but btw -- CTFontRef is already reference ...
12 years, 10 months ago (2012-02-15 22:01:00 UTC) #4
reed1
lgtm
12 years, 10 months ago (2012-02-15 22:02:13 UTC) #5
bungeman
12 years, 10 months ago (2012-02-16 12:42:05 UTC) #6
Committed revision 3205.
Sign in to reply to this message.

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