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 #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 Loading... |
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 Loading... |
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 |
OLD | NEW |