Replace use of deprecated CG methods.
authorbungeman <bungeman@google.com>
Thu, 11 Dec 2014 05:43:27 +0000 (21:43 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 11 Dec 2014 05:43:28 +0000 (21:43 -0800)
commit3490263287e9432119c501884e45840de4d986bc
tree2ba9e1c9f5accf46d281e2c2c24f4722ad24e7d5
parent294738268d3a9317282224f03063eb38ad19717c
Replace use of deprecated CG methods.

OSX10.9 and iOS7.0 deprecated CGContextShowGlyphsAtPoint so a new API
should be used. OSX10.7 and iOS4.2 replace CGContextShowGlyphsAtPoint with
CTFontDrawGlyphs. OSX10.5 and iOS2.0 have CGContextShowGlyphsAtPositions
which works similarly to CTFontDrawGlyphs and has not yet been deprecated.
This change allows the use of CTFontDrawGlyphs when it is available,
falling back to CGContextShowGlyphsAtPositions when it isn't.

Review URL: https://codereview.chromium.org/770383002
expectations/gm/Test-Mac10.7-MacMini4.1-GeForce320M-x86_64-Debug/expected-results.json
expectations/gm/Test-Mac10.7-MacMini4.1-GeForce320M-x86_64-Release/expected-results.json
expectations/gm/Test-Mac10.8-MacMini4.1-GeForce320M-x86_64-Debug/expected-results.json
expectations/gm/Test-Mac10.8-MacMini4.1-GeForce320M-x86_64-Release/expected-results.json
expectations/gm/Test-Win8-ShuttleA-GTX660-x86-Debug/expected-results.json
expectations/gm/Test-Win8-ShuttleA-GTX660-x86-Release/expected-results.json
expectations/gm/Test-Win8-ShuttleA-HD7770-x86_64-Debug/expected-results.json
src/core/SkScalerContext.cpp
src/ports/SkFontHost_mac.cpp