OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "InstanceProcessor.h" | 8 #include "InstanceProcessor.h" |
9 | 9 |
10 #include "GrContext.h" | 10 #include "GrContext.h" |
(...skipping 1683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1694 switch (batchInfo.fAntialiasMode) { | 1694 switch (batchInfo.fAntialiasMode) { |
1695 default: | 1695 default: |
1696 SkFAIL("Unexpected antialias mode."); | 1696 SkFAIL("Unexpected antialias mode."); |
1697 case AntialiasMode::kNone: | 1697 case AntialiasMode::kNone: |
1698 return new BackendNonAA(batchInfo, inputs); | 1698 return new BackendNonAA(batchInfo, inputs); |
1699 case AntialiasMode::kCoverage: | 1699 case AntialiasMode::kCoverage: |
1700 return new BackendCoverage(batchInfo, inputs); | 1700 return new BackendCoverage(batchInfo, inputs); |
1701 case AntialiasMode::kMSAA: | 1701 case AntialiasMode::kMSAA: |
1702 case AntialiasMode::kMixedSamples: { | 1702 case AntialiasMode::kMixedSamples: { |
1703 const GrRenderTargetPriv& rtp = pipeline.getRenderTarget()->renderTa
rgetPriv(); | 1703 const GrRenderTargetPriv& rtp = pipeline.getRenderTarget()->renderTa
rgetPriv(); |
1704 const GrGpu::MultisampleSpecs& specs = rtp.getMultisampleSpecs(pipel
ine.getStencil()); | 1704 const GrGpu::MultisampleSpecs& specs = rtp.getMultisampleSpecs(pipel
ine); |
1705 return new BackendMultisample(batchInfo, inputs, specs.fEffectiveSam
pleCnt); | 1705 return new BackendMultisample(batchInfo, inputs, specs.fEffectiveSam
pleCnt); |
1706 } | 1706 } |
1707 } | 1707 } |
1708 } | 1708 } |
1709 | 1709 |
1710 ////////////////////////////////////////////////////////////////////////////////
//////////////////// | 1710 ////////////////////////////////////////////////////////////////////////////////
//////////////////// |
1711 | 1711 |
1712 const ShapeVertex kVertexData[] = { | 1712 const ShapeVertex kVertexData[] = { |
1713 // Rectangle. | 1713 // Rectangle. |
1714 {+1, +1, ~0}, /*0*/ | 1714 {+1, +1, ~0}, /*0*/ |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2113 | 2113 |
2114 case kCorneredRect_FirstIndex: return "basic_round_rect"; | 2114 case kCorneredRect_FirstIndex: return "basic_round_rect"; |
2115 case kCorneredFramedRect_FirstIndex: return "coverage_round_rect"; | 2115 case kCorneredFramedRect_FirstIndex: return "coverage_round_rect"; |
2116 case kCorneredRectFanned_FirstIndex: return "mixed_samples_round_rect"; | 2116 case kCorneredRectFanned_FirstIndex: return "mixed_samples_round_rect"; |
2117 | 2117 |
2118 default: return "unknown"; | 2118 default: return "unknown"; |
2119 } | 2119 } |
2120 } | 2120 } |
2121 | 2121 |
2122 } | 2122 } |
OLD | NEW |