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

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

Issue 780923002: Ganesh text rendering cleanup. (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 | « src/gpu/GrFontCache.h ('k') | src/gpu/GrInOrderDrawBuffer.cpp » ('j') | 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 2010 Google Inc. 2 * Copyright 2010 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 "GrFontCache.h"
8 #include "GrGpu.h" 9 #include "GrGpu.h"
9 #include "GrRectanizer.h" 10 #include "GrRectanizer.h"
10 #include "GrSurfacePriv.h" 11 #include "GrSurfacePriv.h"
11 #include "GrTextStrike.h"
12 #include "GrTextStrike_impl.h"
13 #include "SkString.h" 12 #include "SkString.h"
14 13
15 #include "SkDistanceFieldGen.h" 14 #include "SkDistanceFieldGen.h"
16 15
17 /////////////////////////////////////////////////////////////////////////////// 16 ///////////////////////////////////////////////////////////////////////////////
18 17
19 #define GR_ATLAS_TEXTURE_WIDTH 1024 18 #define GR_ATLAS_TEXTURE_WIDTH 1024
20 #define GR_ATLAS_TEXTURE_HEIGHT 2048 19 #define GR_ATLAS_TEXTURE_HEIGHT 2048
21 20
22 #define GR_PLOT_WIDTH 256 21 #define GR_PLOT_WIDTH 256
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 glyph->width(), glyph->height(), 335 glyph->width(), glyph->height(),
337 storage.get(), &glyph->fAtlasLocation) ; 336 storage.get(), &glyph->fAtlasLocation) ;
338 337
339 if (NULL == plot) { 338 if (NULL == plot) {
340 return false; 339 return false;
341 } 340 }
342 341
343 glyph->fPlot = plot; 342 glyph->fPlot = plot;
344 return true; 343 return true;
345 } 344 }
OLDNEW
« no previous file with comments | « src/gpu/GrFontCache.h ('k') | src/gpu/GrInOrderDrawBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698