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

Side by Side Diff: src/effects/SkArithmeticMode_gpu.cpp

Issue 1213013003: Revert of Rework GrPipelineInfo (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 5 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 | « include/gpu/GrXferProcessor.h ('k') | src/gpu/GrAAConvexPathRenderer.cpp » ('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 #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
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
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
OLDNEW
« no previous file with comments | « include/gpu/GrXferProcessor.h ('k') | src/gpu/GrAAConvexPathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698