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

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

Issue 1213013003: Revert of Rework GrPipelineInfo (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 5 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/GrPathProcessor.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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 * or both faces. 90 * or both faces.
91 * @return the current draw face(s). 91 * @return the current draw face(s).
92 */ 92 */
93 GrPipelineBuilder::DrawFace getDrawFace() const { return fDrawFace; } 93 GrPipelineBuilder::DrawFace getDrawFace() const { return fDrawFace; }
94 94
95 95
96 /////////////////////////////////////////////////////////////////////////// 96 ///////////////////////////////////////////////////////////////////////////
97 97
98 bool readsFragPosition() const { return fReadsFragPosition; } 98 bool readsFragPosition() const { return fReadsFragPosition; }
99 99
100 const GrPipelineInfo& infoForPrimitiveProcessor() const { 100 const GrPipelineInfo& getInitBatchTracker() const { return fInitBT; }
101 return fInfoForPrimitiveProcessor;
102 }
103 101
104 private: 102 private:
105 /** 103 /**
106 * Alter the program desc and inputs (attribs and processors) based on the b lend optimization. 104 * Alter the program desc and inputs (attribs and processors) based on the b lend optimization.
107 */ 105 */
108 void adjustProgramFromOptimizations(const GrPipelineBuilder& ds, 106 void adjustProgramFromOptimizations(const GrPipelineBuilder& ds,
109 GrXferProcessor::OptFlags, 107 GrXferProcessor::OptFlags,
110 const GrProcOptInfo& colorPOI, 108 const GrProcOptInfo& colorPOI,
111 const GrProcOptInfo& coveragePOI, 109 const GrProcOptInfo& coveragePOI,
112 int* firstColorStageIdx, 110 int* firstColorStageIdx,
(...skipping 17 matching lines...) Expand all
130 typedef SkSTArray<8, GrPendingFragmentStage> FragmentStageArray; 128 typedef SkSTArray<8, GrPendingFragmentStage> FragmentStageArray;
131 typedef GrPendingProgramElement<const GrXferProcessor> ProgramXferProcessor; 129 typedef GrPendingProgramElement<const GrXferProcessor> ProgramXferProcessor;
132 RenderTarget fRenderTarget; 130 RenderTarget fRenderTarget;
133 GrScissorState fScissorState; 131 GrScissorState fScissorState;
134 GrStencilSettings fStencilSettings; 132 GrStencilSettings fStencilSettings;
135 GrPipelineBuilder::DrawFace fDrawFace; 133 GrPipelineBuilder::DrawFace fDrawFace;
136 uint32_t fFlags; 134 uint32_t fFlags;
137 ProgramXferProcessor fXferProcessor; 135 ProgramXferProcessor fXferProcessor;
138 FragmentStageArray fFragmentStages; 136 FragmentStageArray fFragmentStages;
139 bool fReadsFragPosition; 137 bool fReadsFragPosition;
140 GrPipelineInfo fInfoForPrimitiveProcessor; 138 GrPipelineInfo fInitBT;
141 139
142 // This function is equivalent to the offset into fFragmentStages where cove rage stages begin. 140 // This function is equivalent to the offset into fFragmentStages where cove rage stages begin.
143 int fNumColorStages; 141 int fNumColorStages;
144 142
145 GrProgramDesc fDesc; 143 GrProgramDesc fDesc;
146 144
147 typedef SkRefCnt INHERITED; 145 typedef SkRefCnt INHERITED;
148 }; 146 };
149 147
150 #endif 148 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrPathProcessor.cpp ('k') | src/gpu/GrPipeline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698