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

Side by Side Diff: src/gpu/GrPipeline.h

Issue 1417263002: Revert of Dependencies are now added between the drawTargets in GrPipeline (Closed) Base URL: https://skia.googlesource.com/skia.git@mdb-adddeps
Patch Set: Created 5 years, 2 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/GrDrawingManager.cpp ('k') | src/gpu/GrPipeline.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 #ifndef GrPipeline_DEFINED 8 #ifndef GrPipeline_DEFINED
9 #define GrPipeline_DEFINED 9 #define GrPipeline_DEFINED
10 10
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 bBounds.fBottom <= aBounds.fTop; 77 bBounds.fBottom <= aBounds.fTop;
78 } 78 }
79 return true; 79 return true;
80 } 80 }
81 81
82 /// @} 82 /// @}
83 83
84 /////////////////////////////////////////////////////////////////////////// 84 ///////////////////////////////////////////////////////////////////////////
85 /// @name GrFragmentProcessors 85 /// @name GrFragmentProcessors
86 86
87 // Make the renderTarget's drawTarget (if it exists) be dependent on any
88 // drawTargets in this pipeline
89 void addDependenciesTo(GrRenderTarget* rt) const;
90 87
91 int numColorFragmentProcessors() const { return fNumColorProcessors; } 88 int numColorFragmentProcessors() const { return fNumColorProcessors; }
92 int numCoverageFragmentProcessors() const { 89 int numCoverageFragmentProcessors() const {
93 return fFragmentProcessors.count() - fNumColorProcessors; 90 return fFragmentProcessors.count() - fNumColorProcessors;
94 } 91 }
95 int numFragmentProcessors() const { return fFragmentProcessors.count(); } 92 int numFragmentProcessors() const { return fFragmentProcessors.count(); }
96 93
97 const GrXferProcessor* getXferProcessor() const { return fXferProcessor.get( ); } 94 const GrXferProcessor* getXferProcessor() const { return fXferProcessor.get( ); }
98 95
99 const GrFragmentProcessor& getColorFragmentProcessor(int idx) const { 96 const GrFragmentProcessor& getColorFragmentProcessor(int idx) const {
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 FragmentProcessorArray fFragmentProcessors; 178 FragmentProcessorArray fFragmentProcessors;
182 bool fReadsFragPosition; 179 bool fReadsFragPosition;
183 180
184 // This value is also the index in fFragmentProcessors where coverage proces sors begin. 181 // This value is also the index in fFragmentProcessors where coverage proces sors begin.
185 int fNumColorProcessors; 182 int fNumColorProcessors;
186 183
187 typedef SkRefCnt INHERITED; 184 typedef SkRefCnt INHERITED;
188 }; 185 };
189 186
190 #endif 187 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDrawingManager.cpp ('k') | src/gpu/GrPipeline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698