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

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

Issue 901663007: Revert of Move DstCopy on gpu into the GrXferProcessor. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 10 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/GrInOrderDrawBuffer.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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 * Gets whether the target is drawing clockwise, counterclockwise, 125 * Gets whether the target is drawing clockwise, counterclockwise,
126 * or both faces. 126 * or both faces.
127 * @return the current draw face(s). 127 * @return the current draw face(s).
128 */ 128 */
129 GrPipelineBuilder::DrawFace getDrawFace() const { return fDrawFace; } 129 GrPipelineBuilder::DrawFace getDrawFace() const { return fDrawFace; }
130 130
131 /// @} 131 /// @}
132 132
133 /////////////////////////////////////////////////////////////////////////// 133 ///////////////////////////////////////////////////////////////////////////
134 134
135 bool readsFragPosition() const { return fReadsFragPosition; } 135 const GrDeviceCoordTexture* getDstCopy() const { return fDstCopy.texture() ? &fDstCopy : NULL; }
136
137 const GrProgramDesc::DescInfo& descInfo() const { return fDescInfo; }
136 138
137 const GrPipelineInfo& getInitBatchTracker() const { return fInitBT; } 139 const GrPipelineInfo& getInitBatchTracker() const { return fInitBT; }
138 140
139 private: 141 private:
140 // TODO we can have one constructor once GrBatch is complete 142 // TODO we can have one constructor once GrBatch is complete
141 void internalConstructor(const GrPipelineBuilder&, 143 void internalConstructor(const GrPipelineBuilder&,
142 const GrProcOptInfo& colorPOI, 144 const GrProcOptInfo& colorPOI,
143 const GrProcOptInfo& coveragePOI, 145 const GrProcOptInfo& coveragePOI,
144 const GrDrawTargetCaps&, 146 const GrDrawTargetCaps&,
145 const GrScissorState&, 147 const GrScissorState&,
(...skipping 22 matching lines...) Expand all
168 kHWAA_Flag = 0x2, 170 kHWAA_Flag = 0x2,
169 }; 171 };
170 172
171 typedef GrPendingIOResource<GrRenderTarget, kWrite_GrIOType> RenderTarget; 173 typedef GrPendingIOResource<GrRenderTarget, kWrite_GrIOType> RenderTarget;
172 typedef SkSTArray<8, GrPendingFragmentStage> FragmentStageArray; 174 typedef SkSTArray<8, GrPendingFragmentStage> FragmentStageArray;
173 typedef GrPendingProgramElement<const GrXferProcessor> ProgramXferProcessor; 175 typedef GrPendingProgramElement<const GrXferProcessor> ProgramXferProcessor;
174 RenderTarget fRenderTarget; 176 RenderTarget fRenderTarget;
175 GrScissorState fScissorState; 177 GrScissorState fScissorState;
176 GrStencilSettings fStencilSettings; 178 GrStencilSettings fStencilSettings;
177 GrPipelineBuilder::DrawFace fDrawFace; 179 GrPipelineBuilder::DrawFace fDrawFace;
180 GrDeviceCoordTexture fDstCopy;
178 uint32_t fFlags; 181 uint32_t fFlags;
179 ProgramXferProcessor fXferProcessor; 182 ProgramXferProcessor fXferProcessor;
180 FragmentStageArray fFragmentStages; 183 FragmentStageArray fFragmentStages;
181 bool fReadsFragPosition; 184 GrProgramDesc::DescInfo fDescInfo;
182 GrPipelineInfo fInitBT; 185 GrPipelineInfo fInitBT;
183 186
184 // This function is equivalent to the offset into fFragmentStages where cove rage stages begin. 187 // This function is equivalent to the offset into fFragmentStages where cove rage stages begin.
185 int fNumColorStages; 188 int fNumColorStages;
186 189
187 GrProgramDesc fDesc; 190 GrProgramDesc fDesc;
188 191
189 typedef SkRefCnt INHERITED; 192 typedef SkRefCnt INHERITED;
190 }; 193 };
191 194
192 #endif 195 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrInOrderDrawBuffer.cpp ('k') | src/gpu/GrPipeline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698