OLD | NEW |
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 Loading... |
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 |
OLD | NEW |