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 "GrBatchFontCache.h" | 9 #include "GrBatchFontCache.h" |
10 #include "GrBatchTarget.h" | 10 #include "GrBatchTarget.h" |
11 #include "GrBatchTest.h" | 11 #include "GrBatchTest.h" |
12 #include "GrBlurUtils.h" | 12 #include "GrBlurUtils.h" |
13 #include "GrDefaultGeoProcFactory.h" | 13 #include "GrDefaultGeoProcFactory.h" |
14 #include "GrDrawContext.h" | 14 #include "GrDrawContext.h" |
15 #include "GrDrawTarget.h" | 15 #include "GrDrawTarget.h" |
16 #include "GrFontScaler.h" | 16 #include "GrFontScaler.h" |
17 #include "GrIndexBuffer.h" | |
18 #include "GrResourceProvider.h" | 17 #include "GrResourceProvider.h" |
19 #include "GrStrokeInfo.h" | 18 #include "GrStrokeInfo.h" |
20 #include "GrTextBlobCache.h" | 19 #include "GrTextBlobCache.h" |
21 #include "GrTexturePriv.h" | 20 #include "GrTexturePriv.h" |
22 #include "GrVertexBuffer.h" | 21 #include "GrVertexBuffer.h" |
23 | 22 |
24 #include "SkAutoKern.h" | 23 #include "SkAutoKern.h" |
25 #include "SkColorPriv.h" | 24 #include "SkColorPriv.h" |
26 #include "SkColorFilter.h" | 25 #include "SkColorFilter.h" |
27 #include "SkDistanceFieldGen.h" | 26 #include "SkDistanceFieldGen.h" |
(...skipping 2255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2283 gTextContext->createDrawTextBlob(rt, clip, grPaint, skPaint, viewMat
rix, text, | 2282 gTextContext->createDrawTextBlob(rt, clip, grPaint, skPaint, viewMat
rix, text, |
2284 static_cast<size_t>(textLen), 0, 0,
noClip)); | 2283 static_cast<size_t>(textLen), 0, 0,
noClip)); |
2285 | 2284 |
2286 SkScalar transX = static_cast<SkScalar>(random->nextU()); | 2285 SkScalar transX = static_cast<SkScalar>(random->nextU()); |
2287 SkScalar transY = static_cast<SkScalar>(random->nextU()); | 2286 SkScalar transY = static_cast<SkScalar>(random->nextU()); |
2288 const GrAtlasTextBlob::Run::SubRunInfo& info = blob->fRuns[0].fSubRunInfo[0]
; | 2287 const GrAtlasTextBlob::Run::SubRunInfo& info = blob->fRuns[0].fSubRunInfo[0]
; |
2289 return gTextContext->createBatch(blob, info, textLen, 0, 0, color, transX, t
ransY, skPaint); | 2288 return gTextContext->createBatch(blob, info, textLen, 0, 0, color, transX, t
ransY, skPaint); |
2290 } | 2289 } |
2291 | 2290 |
2292 #endif | 2291 #endif |
OLD | NEW |