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

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

Issue 1213383005: Rework GrPipelineInfo (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fixed 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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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