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

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

Issue 1872253004: Revert of Pass effects directly to fontcache (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, 84 GrPathRange* GrResourceProvider::createGlyphs(const SkTypeface* tf, const SkDesc riptor* desc,
85 const SkScalerContextEffects& effe cts,
86 const SkDescriptor* desc,
87 const GrStrokeInfo& stroke) { 85 const GrStrokeInfo& stroke) {
88 86
89 SkASSERT(this->gpu()->pathRendering()); 87 SkASSERT(this->gpu()->pathRendering());
90 return this->gpu()->pathRendering()->createGlyphs(tf, effects, desc, stroke) ; 88 return this->gpu()->pathRendering()->createGlyphs(tf, desc, stroke);
91 } 89 }
92 90
93 GrBuffer* GrResourceProvider::createBuffer(size_t size, GrBufferType intendedTyp e, 91 GrBuffer* GrResourceProvider::createBuffer(size_t size, GrBufferType intendedTyp e,
94 GrAccessPattern accessPattern, uint32 _t flags) { 92 GrAccessPattern accessPattern, uint32 _t flags) {
95 if (this->isAbandoned()) { 93 if (this->isAbandoned()) {
96 return nullptr; 94 return nullptr;
97 } 95 }
98 96
99 if (kDynamic_GrAccessPattern == accessPattern) { 97 if (kDynamic_GrAccessPattern == accessPattern) {
100 // bin by pow2 with a reasonable min 98 // bin by pow2 with a reasonable min
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 return rt->renderTargetPriv().getStencilAttachment(); 185 return rt->renderTargetPriv().getStencilAttachment();
188 } 186 }
189 187
190 GrRenderTarget* GrResourceProvider::wrapBackendTextureAsRenderTarget( 188 GrRenderTarget* GrResourceProvider::wrapBackendTextureAsRenderTarget(
191 const GrBackendTextureDesc& desc) { 189 const GrBackendTextureDesc& desc) {
192 if (this->isAbandoned()) { 190 if (this->isAbandoned()) {
193 return nullptr; 191 return nullptr;
194 } 192 }
195 return this->gpu()->wrapBackendTextureAsRenderTarget(desc); 193 return this->gpu()->wrapBackendTextureAsRenderTarget(desc);
196 } 194 }
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