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 #ifndef GrAtlasTextBatch_DEFINED | 8 #ifndef GrAtlasTextBatch_DEFINED |
9 #define GrAtlasTextBatch_DEFINED | 9 #define GrAtlasTextBatch_DEFINED |
10 | 10 |
11 #include "batches/GrVertexBatch.h" | 11 #include "batches/GrVertexBatch.h" |
12 | 12 |
13 #include "GrAtlasTextContext.h" | 13 #include "text/GrAtlasTextContext.h" |
14 #include "GrDistanceFieldAdjustTable.h" | 14 #include "text/GrDistanceFieldAdjustTable.h" |
15 | 15 |
16 class GrAtlasTextBatch : public GrVertexBatch { | 16 class GrAtlasTextBatch : public GrVertexBatch { |
17 public: | 17 public: |
18 DEFINE_BATCH_CLASS_ID | 18 DEFINE_BATCH_CLASS_ID |
19 | 19 |
20 static const int kVerticesPerGlyph = GrAtlasTextBlob::kVerticesPerGlyph; | 20 static const int kVerticesPerGlyph = GrAtlasTextBlob::kVerticesPerGlyph; |
21 static const int kIndicesPerGlyph = 6; | 21 static const int kIndicesPerGlyph = 6; |
22 | 22 |
23 typedef GrAtlasTextBlob Blob; | 23 typedef GrAtlasTextBlob Blob; |
24 typedef Blob::Run Run; | 24 typedef Blob::Run Run; |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 GrBatchFontCache* fFontCache; | 197 GrBatchFontCache* fFontCache; |
198 | 198 |
199 // Distance field properties | 199 // Distance field properties |
200 SkAutoTUnref<const GrDistanceFieldAdjustTable> fDistanceAdjustTable; | 200 SkAutoTUnref<const GrDistanceFieldAdjustTable> fDistanceAdjustTable; |
201 SkColor fFilteredColor; | 201 SkColor fFilteredColor; |
202 | 202 |
203 typedef GrVertexBatch INHERITED; | 203 typedef GrVertexBatch INHERITED; |
204 }; | 204 }; |
205 | 205 |
206 #endif | 206 #endif |
OLD | NEW |