| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 "GrDistanceFieldTextContext.h" | 8 #include "GrDistanceFieldTextContext.h" |
| 9 #include "GrAtlas.h" | 9 #include "GrAtlas.h" |
| 10 #include "GrBitmapTextContext.h" | 10 #include "GrBitmapTextContext.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 #if SK_FORCE_DISTANCEFIELD_FONTS | 67 #if SK_FORCE_DISTANCEFIELD_FONTS |
| 68 fEnableDFRendering = true; | 68 fEnableDFRendering = true; |
| 69 #else | 69 #else |
| 70 fEnableDFRendering = enable; | 70 fEnableDFRendering = enable; |
| 71 #endif | 71 #endif |
| 72 fStrike = NULL; | 72 fStrike = NULL; |
| 73 fGammaTexture = NULL; | 73 fGammaTexture = NULL; |
| 74 | 74 |
| 75 fEffectTextureUniqueID = SK_InvalidUniqueID; | 75 fEffectTextureUniqueID = SK_InvalidUniqueID; |
| 76 fEffectColor = GrColor_ILLEGAL; | 76 fEffectColor = GrColor_ILLEGAL; |
| 77 fEffectFlags = 0; | 77 fEffectFlags = kInvalid_DistanceFieldEffectFlag; |
| 78 | 78 |
| 79 fVertices = NULL; | 79 fVertices = NULL; |
| 80 fCurrVertex = 0; | 80 fCurrVertex = 0; |
| 81 fAllocVertexCount = 0; | 81 fAllocVertexCount = 0; |
| 82 fTotalVertexCount = 0; | 82 fTotalVertexCount = 0; |
| 83 fCurrTexture = NULL; | 83 fCurrTexture = NULL; |
| 84 | 84 |
| 85 fVertexBounds.setLargestInverted(); | 85 fVertexBounds.setLargestInverted(); |
| 86 } | 86 } |
| 87 | 87 |
| (...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 697 } | 697 } |
| 698 } | 698 } |
| 699 | 699 |
| 700 inline void GrDistanceFieldTextContext::finish() { | 700 inline void GrDistanceFieldTextContext::finish() { |
| 701 this->flush(); | 701 this->flush(); |
| 702 fTotalVertexCount = 0; | 702 fTotalVertexCount = 0; |
| 703 | 703 |
| 704 GrTextContext::finish(); | 704 GrTextContext::finish(); |
| 705 } | 705 } |
| 706 | 706 |
| OLD | NEW |