| 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; |
| 87 | 90 |
| 88 int numColorFragmentProcessors() const { return fNumColorProcessors; } | 91 int numColorFragmentProcessors() const { return fNumColorProcessors; } |
| 89 int numCoverageFragmentProcessors() const { | 92 int numCoverageFragmentProcessors() const { |
| 90 return fFragmentProcessors.count() - fNumColorProcessors; | 93 return fFragmentProcessors.count() - fNumColorProcessors; |
| 91 } | 94 } |
| 92 int numFragmentProcessors() const { return fFragmentProcessors.count(); } | 95 int numFragmentProcessors() const { return fFragmentProcessors.count(); } |
| 93 | 96 |
| 94 const GrXferProcessor* getXferProcessor() const { return fXferProcessor.get(
); } | 97 const GrXferProcessor* getXferProcessor() const { return fXferProcessor.get(
); } |
| 95 | 98 |
| 96 const GrFragmentProcessor& getColorFragmentProcessor(int idx) const { | 99 const GrFragmentProcessor& getColorFragmentProcessor(int idx) const { |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 FragmentProcessorArray fFragmentProcessors; | 181 FragmentProcessorArray fFragmentProcessors; |
| 179 bool fReadsFragPosition; | 182 bool fReadsFragPosition; |
| 180 | 183 |
| 181 // This value is also the index in fFragmentProcessors where coverage proces
sors begin. | 184 // This value is also the index in fFragmentProcessors where coverage proces
sors begin. |
| 182 int fNumColorProcessors; | 185 int fNumColorProcessors; |
| 183 | 186 |
| 184 typedef SkRefCnt INHERITED; | 187 typedef SkRefCnt INHERITED; |
| 185 }; | 188 }; |
| 186 | 189 |
| 187 #endif | 190 #endif |
| OLD | NEW |