diff options
author | 2016-06-08 10:08:43 -0700 | |
---|---|---|
committer | 2016-06-08 10:08:43 -0700 | |
commit | ecbc12b1c1c72de0cf7bba4a3f6a7cce4f43bf41 (patch) | |
tree | 82d33bb0118105ba8da507f814257b3ed44f434b /gm | |
parent | 5c7d62d431a0ad7988f05fbdb206237729c0c308 (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')
-rw-r--r-- | gm/constcolorprocessor.cpp | 3 |
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( |