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

Side by Side Diff: src/gpu/GrResourceProvider.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/GrPipeline.h ('k') | src/gpu/GrSWMaskHelper.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 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 "GrResourceProvider.h" 8 #include "GrResourceProvider.h"
9 9
10 #include "GrGpu.h" 10 #include "GrGpu.h"
11 #include "GrIndexBuffer.h"
12 #include "GrPathRendering.h"
11 #include "GrResourceCache.h" 13 #include "GrResourceCache.h"
12 #include "GrResourceKey.h" 14 #include "GrResourceKey.h"
13 #include "GrVertexBuffer.h" 15 #include "GrVertexBuffer.h"
14 16
15 GR_DECLARE_STATIC_UNIQUE_KEY(gQuadIndexBufferKey); 17 GR_DECLARE_STATIC_UNIQUE_KEY(gQuadIndexBufferKey);
16 18
17 GrResourceProvider::GrResourceProvider(GrGpu* gpu, GrResourceCache* cache) : INH ERITED(gpu, cache) { 19 GrResourceProvider::GrResourceProvider(GrGpu* gpu, GrResourceCache* cache) : INH ERITED(gpu, cache) {
18 GR_DEFINE_STATIC_UNIQUE_KEY(gQuadIndexBufferKey); 20 GR_DEFINE_STATIC_UNIQUE_KEY(gQuadIndexBufferKey);
19 fQuadIndexBufferKey = gQuadIndexBufferKey; 21 fQuadIndexBufferKey = gQuadIndexBufferKey;
20 } 22 }
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 return this->gpu()->pathRendering()->createPathRange(gen, stroke); 76 return this->gpu()->pathRendering()->createPathRange(gen, stroke);
75 } 77 }
76 78
77 GrPathRange* GrResourceProvider::createGlyphs(const SkTypeface* tf, const SkDesc riptor* desc, 79 GrPathRange* GrResourceProvider::createGlyphs(const SkTypeface* tf, const SkDesc riptor* desc,
78 const GrStrokeInfo& stroke) { 80 const GrStrokeInfo& stroke) {
79 81
80 SkASSERT(this->gpu()->pathRendering()); 82 SkASSERT(this->gpu()->pathRendering());
81 return this->gpu()->pathRendering()->createGlyphs(tf, desc, stroke); 83 return this->gpu()->pathRendering()->createGlyphs(tf, desc, stroke);
82 } 84 }
83 85
OLDNEW
« no previous file with comments | « src/gpu/GrPipeline.h ('k') | src/gpu/GrSWMaskHelper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698