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

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

Issue 1157683006: Refactor GrGpu path rendering functions to GrPathRendering (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase, remove include ordering Created 5 years, 6 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/GrAARectRenderer.cpp ('k') | src/gpu/GrBatchTarget.h » ('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 2015 Google Inc. 2 * Copyright 2015 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 "GrBatchFontCache.h" 8 #include "GrBatchFontCache.h"
9 #include "GrContext.h"
9 #include "GrFontAtlasSizes.h" 10 #include "GrFontAtlasSizes.h"
10 #include "GrGpu.h" 11 #include "GrGpu.h"
11 #include "GrRectanizer.h" 12 #include "GrRectanizer.h"
12 #include "GrSurfacePriv.h" 13 #include "GrSurfacePriv.h"
13 #include "SkString.h" 14 #include "SkString.h"
14 15
15 #include "SkDistanceFieldGen.h" 16 #include "SkDistanceFieldGen.h"
16 17
17 /////////////////////////////////////////////////////////////////////////////// 18 ///////////////////////////////////////////////////////////////////////////////
18 19
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 } 236 }
236 237
237 bool success = fBatchFontCache->addToAtlas(this, &glyph->fID, batchTarget, g lyph->fMaskFormat, 238 bool success = fBatchFontCache->addToAtlas(this, &glyph->fID, batchTarget, g lyph->fMaskFormat,
238 glyph->width(), glyph->height(), 239 glyph->width(), glyph->height(),
239 storage.get(), &glyph->fAtlasLoca tion); 240 storage.get(), &glyph->fAtlasLoca tion);
240 if (success) { 241 if (success) {
241 fAtlasedGlyphs++; 242 fAtlasedGlyphs++;
242 } 243 }
243 return success; 244 return success;
244 } 245 }
OLDNEW
« no previous file with comments | « src/gpu/GrAARectRenderer.cpp ('k') | src/gpu/GrBatchTarget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698