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

Side by Side Diff: src/gpu/effects/GrCustomXfermodePriv.h

Issue 851143003: Remove willReadDst from GrFragmentProcessor. (Closed) Base URL: https://skia.googlesource.com/skia.git@xferXP
Patch Set: Rebase Created 5 years, 11 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/effects/GrCoverageSetOpXP.cpp ('k') | src/gpu/effects/GrDisableColorXP.h » ('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 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 GrCustomXfermodePriv_DEFINED 8 #ifndef GrCustomXfermodePriv_DEFINED
9 #define GrCustomXfermodePriv_DEFINED 9 #define GrCustomXfermodePriv_DEFINED
10 10
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 return true; 119 return true;
120 } 120 }
121 121
122 bool canTweakAlphaForCoverage() const SK_OVERRIDE { 122 bool canTweakAlphaForCoverage() const SK_OVERRIDE {
123 return false; 123 return false;
124 } 124 }
125 125
126 void getInvariantOutput(const GrProcOptInfo& colorPOI, const GrProcOptInfo& coveragePOI, 126 void getInvariantOutput(const GrProcOptInfo& colorPOI, const GrProcOptInfo& coveragePOI,
127 GrXPFactory::InvariantOutput*) const SK_OVERRIDE; 127 GrXPFactory::InvariantOutput*) const SK_OVERRIDE;
128 128
129 bool willReadDst(const GrProcOptInfo& colorPOI, 129 bool willReadDst() const SK_OVERRIDE { return true; }
130 const GrProcOptInfo& coveragePOI) const SK_OVERRIDE {
131 return true;
132 }
133 130
134 private: 131 private:
135 bool onIsEqual(const GrXPFactory& xpfBase) const SK_OVERRIDE { 132 bool onIsEqual(const GrXPFactory& xpfBase) const SK_OVERRIDE {
136 const GrCustomXPFactory& xpf = xpfBase.cast<GrCustomXPFactory>(); 133 const GrCustomXPFactory& xpf = xpfBase.cast<GrCustomXPFactory>();
137 return fMode == xpf.fMode; 134 return fMode == xpf.fMode;
138 } 135 }
139 136
140 GR_DECLARE_XP_FACTORY_TEST; 137 GR_DECLARE_XP_FACTORY_TEST;
141 138
142 SkXfermode::Mode fMode; 139 SkXfermode::Mode fMode;
143 140
144 typedef GrXPFactory INHERITED; 141 typedef GrXPFactory INHERITED;
145 }; 142 };
146 #endif 143 #endif
147 144
OLDNEW
« no previous file with comments | « src/gpu/effects/GrCoverageSetOpXP.cpp ('k') | src/gpu/effects/GrDisableColorXP.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698