| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 GrStencilAndCoverTextContext_DEFINED | 8 #ifndef GrStencilAndCoverTextContext_DEFINED |
| 9 #define GrStencilAndCoverTextContext_DEFINED | 9 #define GrStencilAndCoverTextContext_DEFINED |
| 10 | 10 |
| 11 #include "GrTextContext.h" | 11 #include "GrTextContext.h" |
| 12 #include "GrDrawTarget.h" | 12 #include "GrDrawTarget.h" |
| 13 #include "GrStrokeInfo.h" | 13 #include "GrStrokeInfo.h" |
| 14 #include "SkTHash.h" | 14 #include "SkTHash.h" |
| 15 #include "SkTInternalLList.h" | 15 #include "SkTInternalLList.h" |
| 16 #include "SkTLList.h" | 16 #include "SkTLList.h" |
| 17 | 17 |
| 18 class GrTextStrike; | 18 class GrTextStrike; |
| 19 class GrPath; | 19 class GrPath; |
| 20 class SkSurfaceProps; | 20 class SkSurfaceProps; |
| 21 class GrPathRangeDraw; |
| 21 | 22 |
| 22 /* | 23 /* |
| 23 * This class implements text rendering using stencil and cover path rendering | 24 * This class implements text rendering using stencil and cover path rendering |
| 24 * (by the means of GrDrawTarget::drawPath). | 25 * (by the means of GrDrawTarget::drawPath). |
| 25 * This class exposes the functionality through GrTextContext interface. | 26 * This class exposes the functionality through GrTextContext interface. |
| 26 */ | 27 */ |
| 27 class GrStencilAndCoverTextContext : public GrTextContext { | 28 class GrStencilAndCoverTextContext : public GrTextContext { |
| 28 public: | 29 public: |
| 29 static GrStencilAndCoverTextContext* Create(GrContext*, const SkSurfaceProps
&); | 30 static GrStencilAndCoverTextContext* Create(GrContext*, const SkSurfaceProps
&); |
| 30 | 31 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 | 134 |
| 134 SkTHashMap<uint32_t, TextBlob*> fBlobIdCache; | 135 SkTHashMap<uint32_t, TextBlob*> fBlobIdCache; |
| 135 SkTHashTable<TextBlob*, const TextBlob::Key&, TextBlob> fBlobKeyCache; | 136 SkTHashTable<TextBlob*, const TextBlob::Key&, TextBlob> fBlobKeyCache; |
| 136 SkTInternalLList<TextBlob> fLRUList; | 137 SkTInternalLList<TextBlob> fLRUList; |
| 137 size_t fCacheSize; | 138 size_t fCacheSize; |
| 138 | 139 |
| 139 typedef GrTextContext INHERITED; | 140 typedef GrTextContext INHERITED; |
| 140 }; | 141 }; |
| 141 | 142 |
| 142 #endif | 143 #endif |
| OLD | NEW |