OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 "GrBatchFontCache.h" | 8 #include "GrBatchFontCache.h" |
9 #include "GrContext.h" | 9 #include "GrContext.h" |
10 #include "GrGpu.h" | 10 #include "GrGpu.h" |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 | 227 |
228 bool success = fBatchFontCache->addToAtlas(this, &glyph->fID, target, expect
edMaskFormat, | 228 bool success = fBatchFontCache->addToAtlas(this, &glyph->fID, target, expect
edMaskFormat, |
229 glyph->width(), glyph->height(), | 229 glyph->width(), glyph->height(), |
230 storage.get(), &glyph->fAtlasLoca
tion); | 230 storage.get(), &glyph->fAtlasLoca
tion); |
231 if (success) { | 231 if (success) { |
232 SkASSERT(GrBatchAtlas::kInvalidAtlasID != glyph->fID); | 232 SkASSERT(GrBatchAtlas::kInvalidAtlasID != glyph->fID); |
233 fAtlasedGlyphs++; | 233 fAtlasedGlyphs++; |
234 } | 234 } |
235 return success; | 235 return success; |
236 } | 236 } |
OLD | NEW |