Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: src/gpu/GrXferProcessor.cpp

Issue 1541903002: added support for PLS path rendering (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix for ASAN failure Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/GrPrimitiveProcessor.h ('k') | src/gpu/batches/GrAAConvexPathRenderer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « src/gpu/GrPrimitiveProcessor.h ('k') | src/gpu/batches/GrAAConvexPathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698