| 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" | |
| 11 #include "GrProcOptInfo.h" | 10 #include "GrProcOptInfo.h" |
| 12 #include "gl/GrGLCaps.h" | 11 #include "gl/GrGLCaps.h" |
| 13 | 12 |
| 14 GrXferProcessor::GrXferProcessor() | 13 GrXferProcessor::GrXferProcessor() |
| 15 : fWillReadDstColor(false) | 14 : fWillReadDstColor(false) |
| 16 , fDstReadUsesMixedSamples(false) | 15 , fDstReadUsesMixedSamples(false) |
| 17 , fDstTextureOffset() { | 16 , fDstTextureOffset() { |
| 18 } | 17 } |
| 19 | 18 |
| 20 GrXferProcessor::GrXferProcessor(const DstTexture* dstTexture, | 19 GrXferProcessor::GrXferProcessor(const DstTexture* dstTexture, |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 bool GrXPFactory::willNeedDstTexture(const GrCaps& caps, | 213 bool GrXPFactory::willNeedDstTexture(const GrCaps& caps, |
| 215 const GrPipelineOptimizations& optimization
s) const { | 214 const GrPipelineOptimizations& optimization
s) const { |
| 216 return (this->willReadDstColor(caps, optimizations) && | 215 return (this->willReadDstColor(caps, optimizations) && |
| 217 !caps.shaderCaps()->dstReadInShaderSupport()); | 216 !caps.shaderCaps()->dstReadInShaderSupport()); |
| 218 } | 217 } |
| 219 | 218 |
| 220 bool GrXPFactory::willReadDstColor(const GrCaps& caps, | 219 bool GrXPFactory::willReadDstColor(const GrCaps& caps, |
| 221 const GrPipelineOptimizations& optimizations)
const { | 220 const GrPipelineOptimizations& optimizations)
const { |
| 222 return optimizations.fOverrides.fUsePLSDstRead || this->onWillReadDstColor(c
aps, optimizations); | 221 return optimizations.fOverrides.fUsePLSDstRead || this->onWillReadDstColor(c
aps, optimizations); |
| 223 } | 222 } |
| OLD | NEW |