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

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

Issue 1313623002: Add support for blending of LCD for all blend modes. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 3 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
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 13 matching lines...) Expand all
24 class GrProcOptInfo { 24 class GrProcOptInfo {
25 public: 25 public:
26 GrProcOptInfo() 26 GrProcOptInfo()
27 : fInOut(0, static_cast<GrColorComponentFlags>(0), false) 27 : fInOut(0, static_cast<GrColorComponentFlags>(0), false)
28 , fFirstEffectiveProcessorIndex(0) 28 , fFirstEffectiveProcessorIndex(0)
29 , fInputColorIsUsed(true) 29 , fInputColorIsUsed(true)
30 , fInputColor(0) 30 , fInputColor(0)
31 , fReadsFragPosition(false) {} 31 , fReadsFragPosition(false) {}
32 32
33 void calcWithInitialValues(const GrFragmentProcessor* const *, int cnt, GrCo lor startColor, 33 void calcWithInitialValues(const GrFragmentProcessor* const *, int cnt, GrCo lor startColor,
34 GrColorComponentFlags, bool areCoverageStages); 34 GrColorComponentFlags, bool areCoverageStages, bo ol isLCD = false);
35 35
36 void calcColorWithBatch(const GrDrawBatch*, const GrFragmentProcessor* const [], int cnt); 36 void calcColorWithBatch(const GrDrawBatch*, const GrFragmentProcessor* const [], int cnt);
37 void calcCoverageWithBatch(const GrDrawBatch*, const GrFragmentProcessor* co nst[], int cnt); 37 void calcCoverageWithBatch(const GrDrawBatch*, const GrFragmentProcessor* co nst[], int cnt);
38 38
39 // TODO delete these when batch is everywhere 39 // TODO delete these when batch is everywhere
40 void calcColorWithPrimProc(const GrPrimitiveProcessor*, const GrFragmentProc essor* const[], 40 void calcColorWithPrimProc(const GrPrimitiveProcessor*, const GrFragmentProc essor* const[],
41 int cnt); 41 int cnt);
42 void calcCoverageWithPrimProc(const GrPrimitiveProcessor*, const GrFragmentP rocessor* const[], 42 void calcCoverageWithPrimProc(const GrPrimitiveProcessor*, const GrFragmentP rocessor* const[],
43 int cnt); 43 int cnt);
44 44
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 void internalCalc(const GrFragmentProcessor* const[], int cnt, bool initWill ReadFragPosition); 91 void internalCalc(const GrFragmentProcessor* const[], int cnt, bool initWill ReadFragPosition);
92 92
93 GrInvariantOutput fInOut; 93 GrInvariantOutput fInOut;
94 int fFirstEffectiveProcessorIndex; 94 int fFirstEffectiveProcessorIndex;
95 bool fInputColorIsUsed; 95 bool fInputColorIsUsed;
96 GrColor fInputColor; 96 GrColor fInputColor;
97 bool fReadsFragPosition; 97 bool fReadsFragPosition;
98 }; 98 };
99 99
100 #endif 100 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698