OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 "GrXferProcessor.h" | 8 #include "GrXferProcessor.h" |
9 #include "GrPipeline.h" | 9 #include "GrPipeline.h" |
10 #include "GrPipelineBuilder.h" | 10 #include "GrPipelineBuilder.h" |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 #endif | 210 #endif |
211 return this->onCreateXferProcessor(caps, optimizations, hasMixedSamples, dst
Texture); | 211 return this->onCreateXferProcessor(caps, optimizations, hasMixedSamples, dst
Texture); |
212 } | 212 } |
213 | 213 |
214 bool GrXPFactory::willNeedDstTexture(const GrCaps& caps, | 214 bool GrXPFactory::willNeedDstTexture(const GrCaps& caps, |
215 const GrPipelineOptimizations& optimization
s, | 215 const GrPipelineOptimizations& optimization
s, |
216 bool hasMixedSamples) const { | 216 bool hasMixedSamples) const { |
217 return (this->willReadDstColor(caps, optimizations, hasMixedSamples) && | 217 return (this->willReadDstColor(caps, optimizations, hasMixedSamples) && |
218 !caps.shaderCaps()->dstReadInShaderSupport()); | 218 !caps.shaderCaps()->dstReadInShaderSupport()); |
219 } | 219 } |
| 220 |
| 221 bool GrXPFactory::willReadDstColor(const GrCaps& caps, |
| 222 const GrPipelineOptimizations& optimizations, |
| 223 bool hasMixedSamples) const { |
| 224 return optimizations.fOverrides.fUsePLSDstRead || this->onWillReadDstColor(c
aps, optimizations, |
| 225 h
asMixedSamples); |
| 226 } |
OLD | NEW |