aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/ccpr
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/ccpr
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/ccpr')
-rw-r--r--src/gpu/ccpr/GrCoverageCountingPathRenderer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gpu/ccpr/GrCoverageCountingPathRenderer.cpp b/src/gpu/ccpr/GrCoverageCountingPathRenderer.cpp
index 73b7e75307..c6e5a0ecf2 100644
--- a/src/gpu/ccpr/GrCoverageCountingPathRenderer.cpp
+++ b/src/gpu/ccpr/GrCoverageCountingPathRenderer.cpp
@@ -30,6 +30,7 @@ bool GrCoverageCountingPathRenderer::IsSupported(const GrCaps& caps) {
shaderCaps.flatInterpolationSupport() &&
shaderCaps.maxVertexSamplers() >= 1 &&
caps.instanceAttribSupport() &&
+ GrCaps::kNone_MapFlags != caps.mapBufferFlags() &&
caps.isConfigTexturable(kAlpha_half_GrPixelConfig) &&
caps.isConfigRenderable(kAlpha_half_GrPixelConfig, /*withMSAA=*/false) &&
GrCaps::kNone_MapFlags != caps.mapBufferFlags() &&