aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/constcolorprocessor.cpp
diff options
context:
space:
mode:
authorGravatar csmartdalton <csmartdalton@google.com>2016-06-08 10:08:43 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-06-08 10:08:43 -0700
commitecbc12b1c1c72de0cf7bba4a3f6a7cce4f43bf41 (patch)
tree82d33bb0118105ba8da507f814257b3ed44f434b /gm/constcolorprocessor.cpp
parent5c7d62d431a0ad7988f05fbdb206237729c0c308 (diff)
Replace targetHasUnifiedMultisampling in GrPB constructor
Replaces targetHasUnifiedMultisampling with a simpler "useHWAA". Now the code that creates a pipeline builder needs to decide on its own whether it should enable multisampling, rather than relying on the builder to try and guess. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2041283002 Review-Url: https://codereview.chromium.org/2041283002
Diffstat (limited to 'gm/constcolorprocessor.cpp')
-rw-r--r--gm/constcolorprocessor.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/gm/constcolorprocessor.cpp b/gm/constcolorprocessor.cpp
index 57f17b2975..ce2ae6e9fd 100644
--- a/gm/constcolorprocessor.cpp
+++ b/gm/constcolorprocessor.cpp
@@ -107,8 +107,7 @@ protected:
GrColor color = kColors[procColor];
SkAutoTUnref<GrFragmentProcessor> fp(GrConstColorProcessor::Create(color, mode));
- GrPipelineBuilder pipelineBuilder(grPaint,
- drawContext->isUnifiedMultisampled());
+ GrPipelineBuilder pipelineBuilder(grPaint, drawContext->mustUseHWAA(grPaint));
pipelineBuilder.addColorFragmentProcessor(fp);
SkAutoTUnref<GrDrawBatch> batch(