aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrPathRendererChain.h
diff options
context:
space:
mode:
authorGravatar Chris Dalton <csmartdalton@google.com>2017-11-04 15:22:22 -0600
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-11-06 20:44:19 +0000
commitfddb6c03990f3eb3dfd90a14aacddb82613591dd (patch)
treef4e0f5aa228e7869287b33ab17e91872d131b189 /src/gpu/GrPathRendererChain.h
parentb35344a9d941b9e660956cccdfa4dc253af4255a (diff)
Setup CCPR testing with GrMockContext
Beefs up the mock context to be able to support CCPR, sets up a framework for testing CCPR with the mock context, and adds a new test. Bug: skia: Change-Id: If95f92726f7b1a7f52ad04ca8126551f58ea8032 Reviewed-on: https://skia-review.googlesource.com/67980 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'src/gpu/GrPathRendererChain.h')
-rw-r--r--src/gpu/GrPathRendererChain.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gpu/GrPathRendererChain.h b/src/gpu/GrPathRendererChain.h
index 7d2c56ea8c..de17e53d81 100644
--- a/src/gpu/GrPathRendererChain.h
+++ b/src/gpu/GrPathRendererChain.h
@@ -15,6 +15,7 @@
#include "SkTArray.h"
class GrContext;
+class GrCoverageCountingPathRenderer;
/**
* Keeps track of an ordered list of path renderers. When a path needs to be
@@ -46,11 +47,18 @@ public:
DrawType drawType,
GrPathRenderer::StencilSupport* stencilSupport);
+ /** Returns a direct pointer to the coverage counting path renderer, or null if it is not in the
+ chain. */
+ GrCoverageCountingPathRenderer* getCoverageCountingPathRenderer() {
+ return fCoverageCountingPathRenderer;
+ }
+
private:
enum {
kPreAllocCount = 8,
};
SkSTArray<kPreAllocCount, sk_sp<GrPathRenderer>> fChain;
+ GrCoverageCountingPathRenderer* fCoverageCountingPathRenderer = nullptr;
};
#endif