OLD | NEW |
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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 return true; | 124 return true; |
125 } | 125 } |
126 | 126 |
127 bool canTweakAlphaForCoverage() const SK_OVERRIDE { | 127 bool canTweakAlphaForCoverage() const SK_OVERRIDE { |
128 return false; | 128 return false; |
129 } | 129 } |
130 | 130 |
131 void getInvariantOutput(const GrProcOptInfo& colorPOI, const GrProcOptInfo&
coveragePOI, | 131 void getInvariantOutput(const GrProcOptInfo& colorPOI, const GrProcOptInfo&
coveragePOI, |
132 GrXPFactory::InvariantOutput*) const SK_OVERRIDE; | 132 GrXPFactory::InvariantOutput*) const SK_OVERRIDE; |
133 | 133 |
134 bool willReadDst(const GrProcOptInfo& colorPOI, | 134 bool willReadDst() const SK_OVERRIDE { return true; } |
135 const GrProcOptInfo& coveragePOI) const SK_OVERRIDE { | |
136 return true; | |
137 } | |
138 | 135 |
139 private: | 136 private: |
140 bool onIsEqual(const GrXPFactory& xpfBase) const SK_OVERRIDE { | 137 bool onIsEqual(const GrXPFactory& xpfBase) const SK_OVERRIDE { |
141 const GrCustomXPFactory& xpf = xpfBase.cast<GrCustomXPFactory>(); | 138 const GrCustomXPFactory& xpf = xpfBase.cast<GrCustomXPFactory>(); |
142 return fMode == xpf.fMode; | 139 return fMode == xpf.fMode; |
143 } | 140 } |
144 | 141 |
145 GR_DECLARE_XP_FACTORY_TEST; | 142 GR_DECLARE_XP_FACTORY_TEST; |
146 | 143 |
147 SkXfermode::Mode fMode; | 144 SkXfermode::Mode fMode; |
148 | 145 |
149 typedef GrXPFactory INHERITED; | 146 typedef GrXPFactory INHERITED; |
150 }; | 147 }; |
151 #endif | 148 #endif |
152 | 149 |
OLD | NEW |