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

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

Issue 2086293006: Move GrPipelineBuilder out of gms & reduce use of GrPipelineBuilder.h (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update to ToT Created 4 years, 6 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/GrTextureProvider.cpp ('k') | src/gpu/glsl/GrGLSLProgramBuilder.h » ('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"
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
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 }
OLDNEW
« no previous file with comments | « src/gpu/GrTextureProvider.cpp ('k') | src/gpu/glsl/GrGLSLProgramBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698