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

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

Issue 1880873002: Revert "Revert of Pass effects directly to fontcache (patchset #8 id:140001 of https://codereview.c… (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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/GrResourceProvider.h ('k') | src/gpu/text/GrAtlasTextBlob.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 "GrResourceProvider.h" 8 #include "GrResourceProvider.h"
9 9
10 #include "GrBuffer.h" 10 #include "GrBuffer.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 SkASSERT(this->gpu()->pathRendering()); 74 SkASSERT(this->gpu()->pathRendering());
75 return this->gpu()->pathRendering()->createPath(path, stroke); 75 return this->gpu()->pathRendering()->createPath(path, stroke);
76 } 76 }
77 77
78 GrPathRange* GrResourceProvider::createPathRange(GrPathRange::PathGenerator* gen , 78 GrPathRange* GrResourceProvider::createPathRange(GrPathRange::PathGenerator* gen ,
79 const GrStrokeInfo& stroke) { 79 const GrStrokeInfo& stroke) {
80 SkASSERT(this->gpu()->pathRendering()); 80 SkASSERT(this->gpu()->pathRendering());
81 return this->gpu()->pathRendering()->createPathRange(gen, stroke); 81 return this->gpu()->pathRendering()->createPathRange(gen, stroke);
82 } 82 }
83 83
84 GrPathRange* GrResourceProvider::createGlyphs(const SkTypeface* tf, const SkDesc riptor* desc, 84 GrPathRange* GrResourceProvider::createGlyphs(const SkTypeface* tf,
85 const SkScalerContextEffects& effe cts,
86 const SkDescriptor* desc,
85 const GrStrokeInfo& stroke) { 87 const GrStrokeInfo& stroke) {
86 88
87 SkASSERT(this->gpu()->pathRendering()); 89 SkASSERT(this->gpu()->pathRendering());
88 return this->gpu()->pathRendering()->createGlyphs(tf, desc, stroke); 90 return this->gpu()->pathRendering()->createGlyphs(tf, effects, desc, stroke) ;
89 } 91 }
90 92
91 GrBuffer* GrResourceProvider::createBuffer(size_t size, GrBufferType intendedTyp e, 93 GrBuffer* GrResourceProvider::createBuffer(size_t size, GrBufferType intendedTyp e,
92 GrAccessPattern accessPattern, uint32 _t flags) { 94 GrAccessPattern accessPattern, uint32 _t flags) {
93 if (this->isAbandoned()) { 95 if (this->isAbandoned()) {
94 return nullptr; 96 return nullptr;
95 } 97 }
96 98
97 if (kDynamic_GrAccessPattern == accessPattern) { 99 if (kDynamic_GrAccessPattern == accessPattern) {
98 // bin by pow2 with a reasonable min 100 // bin by pow2 with a reasonable min
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 return rt->renderTargetPriv().getStencilAttachment(); 187 return rt->renderTargetPriv().getStencilAttachment();
186 } 188 }
187 189
188 GrRenderTarget* GrResourceProvider::wrapBackendTextureAsRenderTarget( 190 GrRenderTarget* GrResourceProvider::wrapBackendTextureAsRenderTarget(
189 const GrBackendTextureDesc& desc) { 191 const GrBackendTextureDesc& desc) {
190 if (this->isAbandoned()) { 192 if (this->isAbandoned()) {
191 return nullptr; 193 return nullptr;
192 } 194 }
193 return this->gpu()->wrapBackendTextureAsRenderTarget(desc); 195 return this->gpu()->wrapBackendTextureAsRenderTarget(desc);
194 } 196 }
OLDNEW
« no previous file with comments | « src/gpu/GrResourceProvider.h ('k') | src/gpu/text/GrAtlasTextBlob.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698