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

Side by Side Diff: src/gpu/GrFontAtlasSizes.h

Issue 917373002: Use uint16s for texture coordinates when rendering text. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Use float uvs for distance field paths Created 5 years, 10 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 | « src/gpu/GrDistanceFieldTextContext.cpp ('k') | src/gpu/GrFontCache.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1
2 /*
3 * Copyright 2015 Google Inc.
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
8
9 #ifndef GrFontAtlasSizes_DEFINED
10 #define GrFontAtlasSizes_DEFINED
11
12 #define GR_FONT_ATLAS_TEXTURE_WIDTH 1024
13 #define GR_FONT_ATLAS_TEXTURE_HEIGHT 2048
14
15 #define GR_FONT_ATLAS_PLOT_WIDTH 256
16 #define GR_FONT_ATLAS_PLOT_HEIGHT 256
17
18 #define GR_FONT_ATLAS_NUM_PLOTS_X (GR_FONT_ATLAS_TEXTURE_WIDTH / GR_FONT_ATLAS _PLOT_WIDTH)
19 #define GR_FONT_ATLAS_NUM_PLOTS_Y (GR_FONT_ATLAS_TEXTURE_HEIGHT / GR_FONT_ATLA S_PLOT_HEIGHT)
20
21 // one over width and height
22 #define GR_FONT_ATLAS_RECIP_WIDTH "0.0009765625"
23 #define GR_FONT_ATLAS_RECIP_HEIGHT "0.00048828125"
24
25 // 1/(3*width)
26 #define GR_FONT_ATLAS_LCD_DELTA "0.00032552083"
27
28 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDistanceFieldTextContext.cpp ('k') | src/gpu/GrFontCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698