| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2010 Google Inc. | 2 * Copyright 2010 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "GrTextContext.h" | 8 #include "GrTextContext.h" |
| 9 #include "GrContext.h" | 9 #include "GrContext.h" |
| 10 #include "GrFontScaler.h" | 10 #include "GrFontScaler.h" |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 if (cache->getAuxProcData(GlyphCacheAuxProc, &auxData)) { | 167 if (cache->getAuxProcData(GlyphCacheAuxProc, &auxData)) { |
| 168 scaler = (GrFontScaler*)auxData; | 168 scaler = (GrFontScaler*)auxData; |
| 169 } | 169 } |
| 170 if (nullptr == scaler) { | 170 if (nullptr == scaler) { |
| 171 scaler = new GrFontScaler(cache); | 171 scaler = new GrFontScaler(cache); |
| 172 cache->setAuxProc(GlyphCacheAuxProc, scaler); | 172 cache->setAuxProc(GlyphCacheAuxProc, scaler); |
| 173 } | 173 } |
| 174 | 174 |
| 175 return scaler; | 175 return scaler; |
| 176 } | 176 } |
| OLD | NEW |