Ensure that we use different glyph entries for regular and df text.
authorjvanverth <jvanverth@google.com>
Thu, 19 Mar 2015 13:08:31 +0000 (06:08 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 19 Mar 2015 13:08:31 +0000 (06:08 -0700)
commita7634619ec653e94a8a506ca86c233753d10510e
treeb4e294bbf08418e55c852cba877c4e2ab6f41444
parent9b77ddde08efe702256355a333cf31ade8f15bb0
Ensure that we use different glyph entries for regular and df text.

Currently if we switch between regular text and df text while using
the same GrContext, they may use the same entry in the Ganesh font cache,
which is incorrect. This change ensures that they will have different entries.

Committed: https://skia.googlesource.com/skia/+/8dc58edd71c11f232860724dfa3b566895478034

Review URL: https://codereview.chromium.org/1020593003
src/gpu/GrBitmapTextContext.cpp
src/gpu/GrDistanceFieldTextContext.cpp
src/gpu/GrFontCache.cpp
src/gpu/GrFontCache.h
src/gpu/GrGlyph.h