| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2014 Google Inc. | 3 * Copyright 2014 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 #include "effects/GrCoverageSetOpXP.h" | 9 #include "effects/GrCoverageSetOpXP.h" |
| 10 #include "GrCaps.h" |
| 10 #include "GrColor.h" | 11 #include "GrColor.h" |
| 11 #include "GrDrawTargetCaps.h" | |
| 12 #include "GrProcessor.h" | 12 #include "GrProcessor.h" |
| 13 #include "GrProcOptInfo.h" | 13 #include "GrProcOptInfo.h" |
| 14 #include "gl/GrGLXferProcessor.h" | 14 #include "gl/GrGLXferProcessor.h" |
| 15 #include "gl/builders/GrGLFragmentShaderBuilder.h" | 15 #include "gl/builders/GrGLFragmentShaderBuilder.h" |
| 16 #include "gl/builders/GrGLProgramBuilder.h" | 16 #include "gl/builders/GrGLProgramBuilder.h" |
| 17 | 17 |
| 18 class CoverageSetOpXP : public GrXferProcessor { | 18 class CoverageSetOpXP : public GrXferProcessor { |
| 19 public: | 19 public: |
| 20 static GrXferProcessor* Create(SkRegion::Op regionOp, bool invertCoverage) { | 20 static GrXferProcessor* Create(SkRegion::Op regionOp, bool invertCoverage) { |
| 21 return SkNEW_ARGS(CoverageSetOpXP, (regionOp, invertCoverage)); | 21 return SkNEW_ARGS(CoverageSetOpXP, (regionOp, invertCoverage)); |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 | 252 |
| 253 GrXPFactory* GrCoverageSetOpXPFactory::TestCreate(SkRandom* random, | 253 GrXPFactory* GrCoverageSetOpXPFactory::TestCreate(SkRandom* random, |
| 254 GrContext*, | 254 GrContext*, |
| 255 const GrCaps&, | 255 const GrCaps&, |
| 256 GrTexture*[]) { | 256 GrTexture*[]) { |
| 257 SkRegion::Op regionOp = SkRegion::Op(random->nextULessThan(SkRegion::kLastOp
+ 1)); | 257 SkRegion::Op regionOp = SkRegion::Op(random->nextULessThan(SkRegion::kLastOp
+ 1)); |
| 258 bool invertCoverage = random->nextBool(); | 258 bool invertCoverage = random->nextBool(); |
| 259 return GrCoverageSetOpXPFactory::Create(regionOp, invertCoverage); | 259 return GrCoverageSetOpXPFactory::Create(regionOp, invertCoverage); |
| 260 } | 260 } |
| 261 | 261 |
| OLD | NEW |