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

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

Issue 1414903002: Dependencies are now added between the drawTargets in GrPipeline (Closed) Base URL: https://skia.googlesource.com/skia.git@mdb-adddeps
Patch Set: Fix leak on abandon issue Created 5 years, 1 month 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;
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
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
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