| 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 "GrAtlasTextContext.h" | 10 #include "GrAtlasTextContext.h" | 
| (...skipping 10 matching lines...) Expand all  Loading... | 
| 21 | 21 | 
| 22 #include "SkAutoKern.h" | 22 #include "SkAutoKern.h" | 
| 23 #include "SkColorFilter.h" | 23 #include "SkColorFilter.h" | 
| 24 #include "SkDistanceFieldGen.h" | 24 #include "SkDistanceFieldGen.h" | 
| 25 #include "SkDraw.h" | 25 #include "SkDraw.h" | 
| 26 #include "SkGlyphCache.h" | 26 #include "SkGlyphCache.h" | 
| 27 #include "SkGpuDevice.h" | 27 #include "SkGpuDevice.h" | 
| 28 #include "SkPath.h" | 28 #include "SkPath.h" | 
| 29 #include "SkRTConf.h" | 29 #include "SkRTConf.h" | 
| 30 #include "SkStrokeRec.h" | 30 #include "SkStrokeRec.h" | 
| 31 #include "effects/GrDistanceFieldTextureEffect.h" | 31 #include "effects/GrDistanceFieldGeoProc.h" | 
| 32 | 32 | 
| 33 SK_CONF_DECLARE(bool, c_DumpFontCache, "gpu.dumpFontCache", false, | 33 SK_CONF_DECLARE(bool, c_DumpFontCache, "gpu.dumpFontCache", false, | 
| 34                 "Dump the contents of the font cache before every purge."); | 34                 "Dump the contents of the font cache before every purge."); | 
| 35 | 35 | 
| 36 static const int kMinDFFontSize = 18; | 36 static const int kMinDFFontSize = 18; | 
| 37 static const int kSmallDFFontSize = 32; | 37 static const int kSmallDFFontSize = 32; | 
| 38 static const int kSmallDFFontLimit = 32; | 38 static const int kSmallDFFontLimit = 32; | 
| 39 static const int kMediumDFFontSize = 72; | 39 static const int kMediumDFFontSize = 72; | 
| 40 static const int kMediumDFFontLimit = 72; | 40 static const int kMediumDFFontLimit = 72; | 
| 41 static const int kLargeDFFontSize = 162; | 41 static const int kLargeDFFontSize = 162; | 
| (...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 819     } | 819     } | 
| 820 } | 820 } | 
| 821 | 821 | 
| 822 inline void GrDistanceFieldTextContext::finish() { | 822 inline void GrDistanceFieldTextContext::finish() { | 
| 823     this->flush(); | 823     this->flush(); | 
| 824     fTotalVertexCount = 0; | 824     fTotalVertexCount = 0; | 
| 825 | 825 | 
| 826     GrTextContext::finish(); | 826     GrTextContext::finish(); | 
| 827 } | 827 } | 
| 828 | 828 | 
| OLD | NEW | 
|---|