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 "GrAtlasTextBlob.h" | 8 #include "GrAtlasTextBlob.h" |
9 | 9 |
10 #include "GrBlurUtils.h" | 10 #include "GrBlurUtils.h" |
11 #include "GrContext.h" | 11 #include "GrContext.h" |
12 #include "GrDrawContext.h" | 12 #include "GrDrawContext.h" |
| 13 #include "GrPipelineBuilder.h" |
13 #include "GrTextUtils.h" | 14 #include "GrTextUtils.h" |
14 #include "SkColorFilter.h" | 15 #include "SkColorFilter.h" |
15 #include "SkDrawFilter.h" | 16 #include "SkDrawFilter.h" |
16 #include "SkGlyphCache.h" | 17 #include "SkGlyphCache.h" |
17 #include "SkTextBlobRunIterator.h" | 18 #include "SkTextBlobRunIterator.h" |
18 #include "batches/GrAtlasTextBatch.h" | 19 #include "batches/GrAtlasTextBatch.h" |
19 | 20 |
20 GrAtlasTextBlob* GrAtlasTextBlob::Create(GrMemoryPool* pool, int glyphCount, int
runCount) { | 21 GrAtlasTextBlob* GrAtlasTextBlob::Create(GrMemoryPool* pool, int glyphCount, int
runCount) { |
21 // We allocate size for the GrAtlasTextBlob itself, plus size for the vertic
es array, | 22 // We allocate size for the GrAtlasTextBlob itself, plus size for the vertic
es array, |
22 // and size for the glyphIds array. | 23 // and size for the glyphIds array. |
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 | 559 |
559 void GrAtlasTextBlob::Run::SubRunInfo::computeTranslation(const SkMatrix& viewMa
trix, | 560 void GrAtlasTextBlob::Run::SubRunInfo::computeTranslation(const SkMatrix& viewMa
trix, |
560 SkScalar x, SkScalar y
, SkScalar* transX, | 561 SkScalar x, SkScalar y
, SkScalar* transX, |
561 SkScalar* transY) { | 562 SkScalar* transY) { |
562 calculate_translation(!this->drawAsDistanceFields(), viewMatrix, x, y, | 563 calculate_translation(!this->drawAsDistanceFields(), viewMatrix, x, y, |
563 fCurrentViewMatrix, fX, fY, transX, transY); | 564 fCurrentViewMatrix, fX, fY, transX, transY); |
564 fCurrentViewMatrix = viewMatrix; | 565 fCurrentViewMatrix = viewMatrix; |
565 fX = x; | 566 fX = x; |
566 fY = y; | 567 fY = y; |
567 } | 568 } |
OLD | NEW |