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

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

Issue 1664613002: Templatize GrNonAtomicRef (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 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/GrNonAtomicRef.h ('k') | src/gpu/batches/GrBatch.h » ('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 23 matching lines...) Expand all
34 struct GrPipelineOptimizations { 34 struct GrPipelineOptimizations {
35 GrProcOptInfo fColorPOI; 35 GrProcOptInfo fColorPOI;
36 GrProcOptInfo fCoveragePOI; 36 GrProcOptInfo fCoveragePOI;
37 GrBatchToXPOverrides fOverrides; 37 GrBatchToXPOverrides fOverrides;
38 }; 38 };
39 39
40 /** 40 /**
41 * Class that holds an optimized version of a GrPipelineBuilder. It is meant to be an immutable 41 * Class that holds an optimized version of a GrPipelineBuilder. It is meant to be an immutable
42 * class, and contains all data needed to set the state for a gpu draw. 42 * class, and contains all data needed to set the state for a gpu draw.
43 */ 43 */
44 class GrPipeline : public GrNonAtomicRef { 44 class GrPipeline : public GrNonAtomicRef<GrPipeline> {
45 public: 45 public:
46 /////////////////////////////////////////////////////////////////////////// 46 ///////////////////////////////////////////////////////////////////////////
47 /// @name Creation 47 /// @name Creation
48 48
49 struct CreateArgs { 49 struct CreateArgs {
50 const GrPipelineBuilder* fPipelineBuilder; 50 const GrPipelineBuilder* fPipelineBuilder;
51 const GrCaps* fCaps; 51 const GrCaps* fCaps;
52 GrPipelineOptimizations fOpts; 52 GrPipelineOptimizations fOpts;
53 const GrScissorState* fScissor; 53 const GrScissorState* fScissor;
54 GrXferProcessor::DstTexture fDstTexture; 54 GrXferProcessor::DstTexture fDstTexture;
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 bool fReadsFragPosition; 203 bool fReadsFragPosition;
204 bool fIgnoresCoverage; 204 bool fIgnoresCoverage;
205 205
206 // This value is also the index in fFragmentProcessors where coverage proces sors begin. 206 // This value is also the index in fFragmentProcessors where coverage proces sors begin.
207 int fNumColorProcessors; 207 int fNumColorProcessors;
208 208
209 typedef SkRefCnt INHERITED; 209 typedef SkRefCnt INHERITED;
210 }; 210 };
211 211
212 #endif 212 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrNonAtomicRef.h ('k') | src/gpu/batches/GrBatch.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698