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