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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |