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

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

Issue 773193004: Remove unused constants. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years 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 20 matching lines...) Expand all
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 kSmallDFFontSize = 32; 35 static const int kSmallDFFontSize = 32;
36 static const int kSmallDFFontLimit = 32; 36 static const int kSmallDFFontLimit = 32;
37 static const int kMediumDFFontSize = 78; 37 static const int kMediumDFFontSize = 78;
38 static const int kMediumDFFontLimit = 78; 38 static const int kMediumDFFontLimit = 78;
39 static const int kLargeDFFontSize = 192; 39 static const int kLargeDFFontSize = 192;
40 40
41 static const size_t kTextVASize = 2 * sizeof(SkPoint);
42 static const size_t kTextVAColorSize = 2 * sizeof(SkPoint) + sizeof(GrColor);
43
44 static const int kVerticesPerGlyph = 4; 41 static const int kVerticesPerGlyph = 4;
45 static const int kIndicesPerGlyph = 6; 42 static const int kIndicesPerGlyph = 6;
46 43
47 GrDistanceFieldTextContext::GrDistanceFieldTextContext(GrContext* context, 44 GrDistanceFieldTextContext::GrDistanceFieldTextContext(GrContext* context,
48 const SkDeviceProperties& properties, 45 const SkDeviceProperties& properties,
49 bool enable) 46 bool enable)
50 : GrTextContext(context, pro perties) { 47 : GrTextContext(context, pro perties) {
51 #if SK_FORCE_DISTANCE_FIELD_TEXT 48 #if SK_FORCE_DISTANCE_FIELD_TEXT
52 fEnableDFRendering = true; 49 fEnableDFRendering = true;
53 #else 50 #else
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 } 670 }
674 } 671 }
675 672
676 inline void GrDistanceFieldTextContext::finish() { 673 inline void GrDistanceFieldTextContext::finish() {
677 this->flush(); 674 this->flush();
678 fTotalVertexCount = 0; 675 fTotalVertexCount = 0;
679 676
680 GrTextContext::finish(); 677 GrTextContext::finish();
681 } 678 }
682 679
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