Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: src/gpu/GrDistanceFieldTextContext.cpp

Issue 1026613003: Return to old distance field glyph sizes. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 15 matching lines...) Expand all
26 #include "SkGpuDevice.h" 26 #include "SkGpuDevice.h"
27 #include "SkPath.h" 27 #include "SkPath.h"
28 #include "SkRTConf.h" 28 #include "SkRTConf.h"
29 #include "SkStrokeRec.h" 29 #include "SkStrokeRec.h"
30 #include "effects/GrDistanceFieldTextureEffect.h" 30 #include "effects/GrDistanceFieldTextureEffect.h"
31 31
32 SK_CONF_DECLARE(bool, c_DumpFontCache, "gpu.dumpFontCache", false, 32 SK_CONF_DECLARE(bool, c_DumpFontCache, "gpu.dumpFontCache", false,
33 "Dump the contents of the font cache before every purge."); 33 "Dump the contents of the font cache before every purge.");
34 34
35 static const int kMinDFFontSize = 18; 35 static const int kMinDFFontSize = 18;
36 static const int kSmallDFFontSize = 40; 36 static const int kSmallDFFontSize = 32;
37 static const int kSmallDFFontLimit = 40; 37 static const int kSmallDFFontLimit = 32;
38 static const int kMediumDFFontSize = 81; 38 static const int kMediumDFFontSize = 72;
39 static const int kMediumDFFontLimit = 81; 39 static const int kMediumDFFontLimit = 72;
40 static const int kLargeDFFontSize = 162; 40 static const int kLargeDFFontSize = 162;
41 41
42 static const int kVerticesPerGlyph = 4; 42 static const int kVerticesPerGlyph = 4;
43 static const int kIndicesPerGlyph = 6; 43 static const int kIndicesPerGlyph = 6;
44 44
45 GrDistanceFieldTextContext::GrDistanceFieldTextContext(GrContext* context, 45 GrDistanceFieldTextContext::GrDistanceFieldTextContext(GrContext* context,
46 const SkDeviceProperties& properties, 46 const SkDeviceProperties& properties,
47 bool enable) 47 bool enable)
48 : GrTextContext(context, pro perties) { 48 : GrTextContext(context, pro perties) {
49 #if SK_FORCE_DISTANCE_FIELD_TEXT 49 #if SK_FORCE_DISTANCE_FIELD_TEXT
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 } 722 }
723 } 723 }
724 724
725 inline void GrDistanceFieldTextContext::finish() { 725 inline void GrDistanceFieldTextContext::finish() {
726 this->flush(); 726 this->flush();
727 fTotalVertexCount = 0; 727 fTotalVertexCount = 0;
728 728
729 GrTextContext::finish(); 729 GrTextContext::finish();
730 } 730 }
731 731
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698