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

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

Issue 751283002: Add XferProcessor factory in GrPaint and GrDrawState. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix comiple bug Created 6 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
« no previous file with comments | « src/gpu/GrPaint.cpp ('k') | src/gpu/GrProcessor.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 2014 Google Inc. 2 * Copyright 2014 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 GrProcOptInfo_DEFINED 8 #ifndef GrProcOptInfo_DEFINED
9 #define GrProcOptInfo_DEFINED 9 #define GrProcOptInfo_DEFINED
10 10
(...skipping 17 matching lines...) Expand all
28 , fInputColor(0) 28 , fInputColor(0)
29 , fRemoveVertexAttrib(false) 29 , fRemoveVertexAttrib(false)
30 , fReadsDst(false) {} 30 , fReadsDst(false) {}
31 31
32 void calcWithInitialValues(const GrFragmentStage*, int stageCount, GrColor s tartColor, 32 void calcWithInitialValues(const GrFragmentStage*, int stageCount, GrColor s tartColor,
33 GrColorComponentFlags flags, bool areCoverageStag es, 33 GrColorComponentFlags flags, bool areCoverageStag es,
34 const GrGeometryProcessor* gp = NULL); 34 const GrGeometryProcessor* gp = NULL);
35 35
36 bool isSolidWhite() const { return fInOut.isSolidWhite(); } 36 bool isSolidWhite() const { return fInOut.isSolidWhite(); }
37 bool isOpaque() const { return fInOut.isOpaque(); } 37 bool isOpaque() const { return fInOut.isOpaque(); }
38 bool isSingleComponent() const { return fInOut.isSingleComponent(); }
38 39
39 GrColor color() const { return fInOut.color(); } 40 GrColor color() const { return fInOut.color(); }
40 uint8_t validFlags() const { return fInOut.validFlags(); } 41 uint8_t validFlags() const { return fInOut.validFlags(); }
41 42
42 /** 43 /**
43 * Returns the index of the first effective color stage. If an intermediate stage doesn't read 44 * Returns the index of the first effective color stage. If an intermediate stage doesn't read
44 * its input or has a known output, then we can ignore all earlier stages si nce they will not 45 * its input or has a known output, then we can ignore all earlier stages si nce they will not
45 * affect the final output. Thus the first effective stage index is the inde x to the first stage 46 * affect the final output. Thus the first effective stage index is the inde x to the first stage
46 * that will have an effect on the final output. 47 * that will have an effect on the final output.
47 * 48 *
(...skipping 28 matching lines...) Expand all
76 private: 77 private:
77 GrInvariantOutput fInOut; 78 GrInvariantOutput fInOut;
78 int fFirstEffectStageIndex; 79 int fFirstEffectStageIndex;
79 bool fInputColorIsUsed; 80 bool fInputColorIsUsed;
80 GrColor fInputColor; 81 GrColor fInputColor;
81 bool fRemoveVertexAttrib; 82 bool fRemoveVertexAttrib;
82 bool fReadsDst; 83 bool fReadsDst;
83 }; 84 };
84 85
85 #endif 86 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrPaint.cpp ('k') | src/gpu/GrProcessor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698