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

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

Issue 927623002: Determine whether we can tweakAlphaForCoverage during Pipeline/XP creation. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: review nit 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/GrPrimitiveProcessor.h ('k') | src/gpu/effects/GrPorterDuffXferProcessor.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 27 matching lines...) Expand all
38 void calcCoverageWithBatch(const GrBatch*, const GrFragmentStage*, int stage count); 38 void calcCoverageWithBatch(const GrBatch*, const GrFragmentStage*, int stage count);
39 39
40 // TODO delete these when batch is everywhere 40 // TODO delete these when batch is everywhere
41 void calcColorWithPrimProc(const GrPrimitiveProcessor*, const GrFragmentStag e*, int stagecount); 41 void calcColorWithPrimProc(const GrPrimitiveProcessor*, const GrFragmentStag e*, int stagecount);
42 void calcCoverageWithPrimProc(const GrPrimitiveProcessor*, const GrFragmentS tage*, 42 void calcCoverageWithPrimProc(const GrPrimitiveProcessor*, const GrFragmentS tage*,
43 int stagecount); 43 int stagecount);
44 44
45 bool isSolidWhite() const { return fInOut.isSolidWhite(); } 45 bool isSolidWhite() const { return fInOut.isSolidWhite(); }
46 bool isOpaque() const { return fInOut.isOpaque(); } 46 bool isOpaque() const { return fInOut.isOpaque(); }
47 bool isSingleComponent() const { return fInOut.isSingleComponent(); } 47 bool isSingleComponent() const { return fInOut.isSingleComponent(); }
48 bool allStagesMultiplyInput() const { return fInOut.allStagesMulInput(); }
48 49
49 // TODO: Once texture pixel configs quaries are updated, we no longer need t his function. 50 // TODO: Once texture pixel configs quaries are updated, we no longer need t his function.
50 // For now this function will correctly tell us if we are using LCD text or not and should only 51 // For now this function will correctly tell us if we are using LCD text or not and should only
51 // be called when looking at the coverage output. 52 // be called when looking at the coverage output.
52 bool isFourChannelOutput() const { return !fInOut.isSingleComponent() && 53 bool isFourChannelOutput() const { return !fInOut.isSingleComponent() &&
53 fInOut.isLCDCoverage(); } 54 fInOut.isLCDCoverage(); }
54 55
55 GrColor color() const { return fInOut.color(); } 56 GrColor color() const { return fInOut.color(); }
56 uint8_t validFlags() const { return fInOut.validFlags(); } 57 uint8_t validFlags() const { return fInOut.validFlags(); }
57 58
(...skipping 29 matching lines...) Expand all
87 void internalCalc(const GrFragmentStage*, int stagecount, bool initWillReadF ragPosition); 88 void internalCalc(const GrFragmentStage*, int stagecount, bool initWillReadF ragPosition);
88 89
89 GrInvariantOutput fInOut; 90 GrInvariantOutput fInOut;
90 int fFirstEffectStageIndex; 91 int fFirstEffectStageIndex;
91 bool fInputColorIsUsed; 92 bool fInputColorIsUsed;
92 GrColor fInputColor; 93 GrColor fInputColor;
93 bool fReadsFragPosition; 94 bool fReadsFragPosition;
94 }; 95 };
95 96
96 #endif 97 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrPrimitiveProcessor.h ('k') | src/gpu/effects/GrPorterDuffXferProcessor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698