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

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

Issue 1368423003: Use child processors to implement compose color filter. (Closed) Base URL: https://skia.googlesource.com/skia.git@upm
Patch Set: Address comments Created 5 years, 2 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/GrFragmentProcessor.cpp ('k') | src/gpu/SkGr.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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 // TODO: Once texture pixel configs quaries are updated, we no longer need t his function. 44 // TODO: Once texture pixel configs quaries are updated, we no longer need t his function.
45 // For now this function will correctly tell us if we are using LCD text or not and should only 45 // For now this function will correctly tell us if we are using LCD text or not and should only
46 // be called when looking at the coverage output. 46 // be called when looking at the coverage output.
47 bool isFourChannelOutput() const { return !fInOut.isSingleComponent() && 47 bool isFourChannelOutput() const { return !fInOut.isSingleComponent() &&
48 fInOut.isLCDCoverage(); } 48 fInOut.isLCDCoverage(); }
49 49
50 GrColor color() const { return fInOut.color(); } 50 GrColor color() const { return fInOut.color(); }
51 51
52 GrColorComponentFlags validFlags() const { 52 GrColorComponentFlags validFlags() const {
53 return static_cast<GrColorComponentFlags>(fInOut.validFlags()); 53 return fInOut.validFlags();
54 } 54 }
55 55
56 /** 56 /**
57 * Returns the index of the first effective color processor. If an intermedi ate processor 57 * Returns the index of the first effective color processor. If an intermedi ate processor
58 * doesn't read its input or has a known output, then we can ignore all earl ier processors 58 * doesn't read its input or has a known output, then we can ignore all earl ier processors
59 * since they will not affect the final output. Thus the first effective pro cessors index is 59 * since they will not affect the final output. Thus the first effective pro cessors index is
60 * the index to the first processor that will have an effect on the final ou tput. 60 * the index to the first processor that will have an effect on the final ou tput.
61 * 61 *
62 * If processors before the firstEffectiveProcessorIndex() are removed, corr esponding values 62 * If processors before the firstEffectiveProcessorIndex() are removed, corr esponding values
63 * from inputColorIsUsed(), inputColorToEffectiveProcessor(), removeVertexAt tribs(), and 63 * from inputColorIsUsed(), inputColorToEffectiveProcessor(), removeVertexAt tribs(), and
(...skipping 21 matching lines...) Expand all
85 void internalCalc(const GrFragmentProcessor* const[], int cnt, bool initWill ReadFragPosition); 85 void internalCalc(const GrFragmentProcessor* const[], int cnt, bool initWill ReadFragPosition);
86 86
87 GrInvariantOutput fInOut; 87 GrInvariantOutput fInOut;
88 int fFirstEffectiveProcessorIndex; 88 int fFirstEffectiveProcessorIndex;
89 bool fInputColorIsUsed; 89 bool fInputColorIsUsed;
90 GrColor fInputColor; 90 GrColor fInputColor;
91 bool fReadsFragPosition; 91 bool fReadsFragPosition;
92 }; 92 };
93 93
94 #endif 94 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrFragmentProcessor.cpp ('k') | src/gpu/SkGr.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698