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