OLD | NEW |
(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 |
OLD | NEW |