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 #include "GrAtlasTextContext.h" | 7 #include "GrAtlasTextContext.h" |
8 | 8 |
9 #include "GrBatch.h" | 9 #include "GrBatch.h" |
10 #include "GrBatchFontCache.h" | 10 #include "GrBatchFontCache.h" |
11 #include "GrBatchTarget.h" | 11 #include "GrBatchTarget.h" |
12 #include "GrDefaultGeoProcFactory.h" | 12 #include "GrDefaultGeoProcFactory.h" |
13 #include "GrDrawTarget.h" | 13 #include "GrDrawTarget.h" |
14 #include "GrFontScaler.h" | 14 #include "GrFontScaler.h" |
15 #include "GrIndexBuffer.h" | 15 #include "GrIndexBuffer.h" |
16 #include "GrStrokeInfo.h" | 16 #include "GrStrokeInfo.h" |
17 #include "GrTextBlobCache.h" | 17 #include "GrTextBlobCache.h" |
18 #include "GrTexturePriv.h" | 18 #include "GrTexturePriv.h" |
| 19 #include "GrVertexBuffer.h" |
19 | 20 |
20 #include "SkAutoKern.h" | 21 #include "SkAutoKern.h" |
21 #include "SkColorPriv.h" | 22 #include "SkColorPriv.h" |
22 #include "SkColorFilter.h" | 23 #include "SkColorFilter.h" |
23 #include "SkDistanceFieldGen.h" | 24 #include "SkDistanceFieldGen.h" |
24 #include "SkDraw.h" | 25 #include "SkDraw.h" |
25 #include "SkDrawFilter.h" | 26 #include "SkDrawFilter.h" |
26 #include "SkDrawProcs.h" | 27 #include "SkDrawProcs.h" |
27 #include "SkGlyphCache.h" | 28 #include "SkGlyphCache.h" |
28 #include "SkGpuDevice.h" | 29 #include "SkGpuDevice.h" |
(...skipping 2126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2155 pipelineBuilder.setFromPaint(grPaint, rt, clip); | 2156 pipelineBuilder.setFromPaint(grPaint, rt, clip); |
2156 | 2157 |
2157 GrColor color = grPaint.getColor(); | 2158 GrColor color = grPaint.getColor(); |
2158 for (int run = 0; run < cacheBlob->fRunCount; run++) { | 2159 for (int run = 0; run < cacheBlob->fRunCount; run++) { |
2159 this->flushRun(target, &pipelineBuilder, cacheBlob, run, color, 0, 0, sk
Paint); | 2160 this->flushRun(target, &pipelineBuilder, cacheBlob, run, color, 0, 0, sk
Paint); |
2160 } | 2161 } |
2161 | 2162 |
2162 // Now flush big glyphs | 2163 // Now flush big glyphs |
2163 this->flushBigGlyphs(cacheBlob, rt, grPaint, clip, 0, 0); | 2164 this->flushBigGlyphs(cacheBlob, rt, grPaint, clip, 0, 0); |
2164 } | 2165 } |
OLD | NEW |