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

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

Issue 1467553002: New API for computing optimization invariants. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years 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 GrPipeline_DEFINED 8 #ifndef GrPipeline_DEFINED
9 #define GrPipeline_DEFINED 9 #define GrPipeline_DEFINED
10 10
(...skipping 25 matching lines...) Expand all
36 struct CreateArgs { 36 struct CreateArgs {
37 const GrPipelineBuilder* fPipelineBuilder; 37 const GrPipelineBuilder* fPipelineBuilder;
38 const GrCaps* fCaps; 38 const GrCaps* fCaps;
39 GrProcOptInfo fColorPOI; 39 GrProcOptInfo fColorPOI;
40 GrProcOptInfo fCoveragePOI; 40 GrProcOptInfo fCoveragePOI;
41 const GrScissorState* fScissor; 41 const GrScissorState* fScissor;
42 GrXferProcessor::DstTexture fDstTexture; 42 GrXferProcessor::DstTexture fDstTexture;
43 }; 43 };
44 44
45 /** Creates a pipeline into a pre-allocated buffer */ 45 /** Creates a pipeline into a pre-allocated buffer */
46 static GrPipeline* CreateAt(void* memory, const CreateArgs&, GrPipelineOptim izations*); 46 static GrPipeline* CreateAt(void* memory, const CreateArgs&, GrXPOverridesFo rBatch*);
47 47
48 /// @} 48 /// @}
49 49
50 /////////////////////////////////////////////////////////////////////////// 50 ///////////////////////////////////////////////////////////////////////////
51 /// @name Comparisons 51 /// @name Comparisons
52 52
53 /** 53 /**
54 * Returns true if these pipelines are equivalent. Coord transforms may be applied either on 54 * Returns true if these pipelines are equivalent. Coord transforms may be applied either on
55 * the GPU or the CPU. When we apply them on the CPU then the matrices need not agree in order 55 * the GPU or the CPU. When we apply them on the CPU then the matrices need not agree in order
56 * to combine draws. Therefore we take a param that indicates whether coord transforms should be 56 * to combine draws. Therefore we take a param that indicates whether coord transforms should be
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 FragmentProcessorArray fFragmentProcessors; 181 FragmentProcessorArray fFragmentProcessors;
182 bool fReadsFragPosition; 182 bool fReadsFragPosition;
183 183
184 // 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.
185 int fNumColorProcessors; 185 int fNumColorProcessors;
186 186
187 typedef SkRefCnt INHERITED; 187 typedef SkRefCnt INHERITED;
188 }; 188 };
189 189
190 #endif 190 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698