aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrDrawingManager.h
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2017-11-07 16:23:34 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-11-08 01:34:06 +0000
commitaf597481143ca4b17884360604be954a71cc34cf (patch)
tree64a02d4d48a1847f67e0c88f6f28ee9eff175f99 /src/gpu/GrDrawingManager.h
parent85fb42ae4cffc335acc8da2d294209e2185f5848 (diff)
Add GrContextOptions to control distance field thresholds for small sizes and fallback to paths.
Change-Id: Ib57c40b1b50c5afe079b2099d1a83986629ea287 Reviewed-on: https://skia-review.googlesource.com/68217 Reviewed-by: Jim Van Verth <jvanverth@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrDrawingManager.h')
-rw-r--r--src/gpu/GrDrawingManager.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/gpu/GrDrawingManager.h b/src/gpu/GrDrawingManager.h
index f78229fd0e..d4ec85a9a1 100644
--- a/src/gpu/GrDrawingManager.h
+++ b/src/gpu/GrDrawingManager.h
@@ -85,17 +85,18 @@ public:
private:
GrDrawingManager(GrContext* context,
const GrPathRendererChain::Options& optionsForPathRendererChain,
+ const GrAtlasTextContext::Options& optionsForAtlasTextContext,
GrSingleOwner* singleOwner)
- : fContext(context)
- , fOptionsForPathRendererChain(optionsForPathRendererChain)
- , fSingleOwner(singleOwner)
- , fAbandoned(false)
- , fAtlasTextContext(nullptr)
- , fPathRendererChain(nullptr)
- , fSoftwarePathRenderer(nullptr)
- , fFlushState(context->getGpu(), context->resourceProvider())
- , fFlushing(false) {
- }
+ : fContext(context)
+ , fOptionsForPathRendererChain(optionsForPathRendererChain)
+ , fOptionsForAtlasTextContext(optionsForAtlasTextContext)
+ , fSingleOwner(singleOwner)
+ , fAbandoned(false)
+ , fAtlasTextContext(nullptr)
+ , fPathRendererChain(nullptr)
+ , fSoftwarePathRenderer(nullptr)
+ , fFlushState(context->getGpu(), context->resourceProvider())
+ , fFlushing(false) {}
void abandon();
void cleanup();
@@ -119,6 +120,7 @@ private:
GrContext* fContext;
GrPathRendererChain::Options fOptionsForPathRendererChain;
+ GrAtlasTextContext::Options fOptionsForAtlasTextContext;
// In debug builds we guard against improper thread handling
GrSingleOwner* fSingleOwner;