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 #include "SkArithmeticMode_gpu.h" | 8 #include "SkArithmeticMode_gpu.h" |
9 | 9 |
10 #if SK_SUPPORT_GPU | 10 #if SK_SUPPORT_GPU |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 | 262 |
263 GrGLXferProcessor* ArithmeticXP::createGLInstance() const { | 263 GrGLXferProcessor* ArithmeticXP::createGLInstance() const { |
264 return SkNEW_ARGS(GLArithmeticXP, (*this)); | 264 return SkNEW_ARGS(GLArithmeticXP, (*this)); |
265 } | 265 } |
266 | 266 |
267 GrXferProcessor::OptFlags ArithmeticXP::onGetOptimizations(const GrProcOptInfo&
colorPOI, | 267 GrXferProcessor::OptFlags ArithmeticXP::onGetOptimizations(const GrProcOptInfo&
colorPOI, |
268 const GrProcOptInfo&
coveragePOI, | 268 const GrProcOptInfo&
coveragePOI, |
269 bool doesStencilWrite
, | 269 bool doesStencilWrite
, |
270 GrColor* overrideColo
r, | 270 GrColor* overrideColo
r, |
271 const GrCaps& caps) { | 271 const GrCaps& caps) { |
272 return GrXferProcessor::kNone_OptFlags; | 272 return GrXferProcessor::kNone_Opt; |
273 } | 273 } |
274 | 274 |
275 /////////////////////////////////////////////////////////////////////////////// | 275 /////////////////////////////////////////////////////////////////////////////// |
276 | 276 |
277 GrArithmeticXPFactory::GrArithmeticXPFactory(float k1, float k2, float k3, float
k4, | 277 GrArithmeticXPFactory::GrArithmeticXPFactory(float k1, float k2, float k3, float
k4, |
278 bool enforcePMColor) | 278 bool enforcePMColor) |
279 : fK1(k1), fK2(k2), fK3(k3), fK4(k4), fEnforcePMColor(enforcePMColor) { | 279 : fK1(k1), fK2(k2), fK3(k3), fK4(k4), fEnforcePMColor(enforcePMColor) { |
280 this->initClassID<GrArithmeticXPFactory>(); | 280 this->initClassID<GrArithmeticXPFactory>(); |
281 } | 281 } |
282 | 282 |
(...skipping 27 matching lines...) Expand all Loading... |
310 float k1 = random->nextF(); | 310 float k1 = random->nextF(); |
311 float k2 = random->nextF(); | 311 float k2 = random->nextF(); |
312 float k3 = random->nextF(); | 312 float k3 = random->nextF(); |
313 float k4 = random->nextF(); | 313 float k4 = random->nextF(); |
314 bool enforcePMColor = random->nextBool(); | 314 bool enforcePMColor = random->nextBool(); |
315 | 315 |
316 return GrArithmeticXPFactory::Create(k1, k2, k3, k4, enforcePMColor); | 316 return GrArithmeticXPFactory::Create(k1, k2, k3, k4, enforcePMColor); |
317 } | 317 } |
318 | 318 |
319 #endif | 319 #endif |
OLD | NEW |