diff options
author | 2016-05-10 05:57:27 -0700 | |
---|---|---|
committer | 2016-05-10 05:57:27 -0700 | |
commit | 33595bdf4b64a745f6340338d307e806e96c587f (patch) | |
tree | e6a4e7abd27df7aa3fdc764d67ec9e3b4cf86868 /src/gpu/GrResourceProvider.cpp | |
parent | 82595b6fa4733e1525f357bdcac22db058790550 (diff) |
Replace GrStrokeInfo with GrStyle.
A side effect is that arbitrary path effects can no be pushed deeper into the Ganesh flow for paths. They may be applied by path renderers.
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1957363002
Review-Url: https://codereview.chromium.org/1957363002
Diffstat (limited to 'src/gpu/GrResourceProvider.cpp')
-rw-r--r-- | src/gpu/GrResourceProvider.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gpu/GrResourceProvider.cpp b/src/gpu/GrResourceProvider.cpp index f57d7eb796..9fa202af6c 100644 --- a/src/gpu/GrResourceProvider.cpp +++ b/src/gpu/GrResourceProvider.cpp @@ -70,24 +70,24 @@ const GrBuffer* GrResourceProvider::createQuadIndexBuffer() { return this->createInstancedIndexBuffer(kPattern, 6, kMaxQuads, 4, fQuadIndexBufferKey); } -GrPath* GrResourceProvider::createPath(const SkPath& path, const GrStrokeInfo& stroke) { +GrPath* GrResourceProvider::createPath(const SkPath& path, const GrStyle& style) { SkASSERT(this->gpu()->pathRendering()); - return this->gpu()->pathRendering()->createPath(path, stroke); + return this->gpu()->pathRendering()->createPath(path, style); } GrPathRange* GrResourceProvider::createPathRange(GrPathRange::PathGenerator* gen, - const GrStrokeInfo& stroke) { + const GrStyle& style) { SkASSERT(this->gpu()->pathRendering()); - return this->gpu()->pathRendering()->createPathRange(gen, stroke); + return this->gpu()->pathRendering()->createPathRange(gen, style); } GrPathRange* GrResourceProvider::createGlyphs(const SkTypeface* tf, const SkScalerContextEffects& effects, const SkDescriptor* desc, - const GrStrokeInfo& stroke) { + const GrStyle& style) { SkASSERT(this->gpu()->pathRendering()); - return this->gpu()->pathRendering()->createGlyphs(tf, effects, desc, stroke); + return this->gpu()->pathRendering()->createGlyphs(tf, effects, desc, style); } GrBuffer* GrResourceProvider::createBuffer(size_t size, GrBufferType intendedType, |