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

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

Issue 2035823002: Make GrClipMaskManager stateless and push GrPipelineBuilder construction downstack (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address code review comments Created 4 years, 6 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
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 GrPipelineBuilder_DEFINED 8 #ifndef GrPipelineBuilder_DEFINED
9 #define GrPipelineBuilder_DEFINED 9 #define GrPipelineBuilder_DEFINED
10 10
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 * @param target The render target to set. 191 * @param target The render target to set.
192 */ 192 */
193 void setRenderTarget(GrRenderTarget* target) { fRenderTarget.reset(SkSafeRef (target)); } 193 void setRenderTarget(GrRenderTarget* target) { fRenderTarget.reset(SkSafeRef (target)); }
194 194
195 /// @} 195 /// @}
196 196
197 /////////////////////////////////////////////////////////////////////////// 197 ///////////////////////////////////////////////////////////////////////////
198 /// @name Stencil 198 /// @name Stencil
199 //// 199 ////
200 200
201 bool hasUserStencilSettings() const { 201 bool hasUserStencilSettings() const { return !fUserStencilSettings->isUnused (); }
202 return &GrUserStencilSettings::kUnused != fUserStencilSettings;
203 }
204 const GrUserStencilSettings* getUserStencil() const { return fUserStencilSet tings; } 202 const GrUserStencilSettings* getUserStencil() const { return fUserStencilSet tings; }
205 203
206 /** 204 /**
207 * Sets the user stencil settings for the next draw. 205 * Sets the user stencil settings for the next draw.
208 * This class only stores pointers to stencil settings objects. 206 * This class only stores pointers to stencil settings objects.
209 * The caller guarantees the pointer will remain valid until it 207 * The caller guarantees the pointer will remain valid until it
210 * changes or goes out of scope. 208 * changes or goes out of scope.
211 * @param settings the stencil settings to use. 209 * @param settings the stencil settings to use.
212 */ 210 */
213 void setUserStencil(const GrUserStencilSettings* settings) { fUserStencilSet tings = settings; } 211 void setUserStencil(const GrUserStencilSettings* settings) { fUserStencilSet tings = settings; }
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 DrawFace fDrawFace; 332 DrawFace fDrawFace;
335 mutable SkAutoTUnref<const GrXPFactory> fXPFactory; 333 mutable SkAutoTUnref<const GrXPFactory> fXPFactory;
336 FragmentProcessorArray fColorFragmentProcessors; 334 FragmentProcessorArray fColorFragmentProcessors;
337 FragmentProcessorArray fCoverageFragmentProcessors; 335 FragmentProcessorArray fCoverageFragmentProcessors;
338 336
339 friend class GrPipeline; 337 friend class GrPipeline;
340 friend class GrDrawTarget; 338 friend class GrDrawTarget;
341 }; 339 };
342 340
343 #endif 341 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698