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

Side by Side Diff: include/gpu/effects/GrCoverageSetOpXP.h

Issue 1480353002: APIs which took colorPOI / coveragePOI pairs updated to take a GrPipelineOptimizations struct (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years 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') | include/gpu/effects/GrPorterDuffXferProcessor.h » ('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 2014 Google Inc. 2 * Copyright 2014 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 #ifndef GrCoverageSetOpXP_DEFINED 8 #ifndef GrCoverageSetOpXP_DEFINED
9 #define GrCoverageSetOpXP_DEFINED 9 #define GrCoverageSetOpXP_DEFINED
10 10
(...skipping 12 matching lines...) Expand all
23 public: 23 public:
24 static GrXPFactory* Create(SkRegion::Op regionOp, bool invertCoverage = fals e); 24 static GrXPFactory* Create(SkRegion::Op regionOp, bool invertCoverage = fals e);
25 25
26 void getInvariantBlendedColor(const GrProcOptInfo& colorPOI, 26 void getInvariantBlendedColor(const GrProcOptInfo& colorPOI,
27 GrXPFactory::InvariantBlendedColor*) const ove rride; 27 GrXPFactory::InvariantBlendedColor*) const ove rride;
28 28
29 private: 29 private:
30 GrCoverageSetOpXPFactory(SkRegion::Op regionOp, bool invertCoverage); 30 GrCoverageSetOpXPFactory(SkRegion::Op regionOp, bool invertCoverage);
31 31
32 GrXferProcessor* onCreateXferProcessor(const GrCaps& caps, 32 GrXferProcessor* onCreateXferProcessor(const GrCaps& caps,
33 const GrProcOptInfo& colorPOI, 33 const GrPipelineOptimizations& optimi zations,
34 const GrProcOptInfo& coveragePOI,
35 bool hasMixedSamples, 34 bool hasMixedSamples,
36 const DstTexture*) const override; 35 const DstTexture*) const override;
37 36
38 bool willReadDstColor(const GrCaps& /*caps*/, 37 bool willReadDstColor(const GrCaps& /*caps*/,
39 const GrProcOptInfo& /*colorPOI*/, 38 const GrPipelineOptimizations& /*optimizations*/,
40 const GrProcOptInfo& /*coveragePOI*/,
41 bool /*hasMixedSamples*/) const override { 39 bool /*hasMixedSamples*/) const override {
42 return false; 40 return false;
43 } 41 }
44 42
45 bool onIsEqual(const GrXPFactory& xpfBase) const override { 43 bool onIsEqual(const GrXPFactory& xpfBase) const override {
46 const GrCoverageSetOpXPFactory& xpf = xpfBase.cast<GrCoverageSetOpXPFact ory>(); 44 const GrCoverageSetOpXPFactory& xpf = xpfBase.cast<GrCoverageSetOpXPFact ory>();
47 return fRegionOp == xpf.fRegionOp; 45 return fRegionOp == xpf.fRegionOp;
48 } 46 }
49 47
50 GR_DECLARE_XP_FACTORY_TEST; 48 GR_DECLARE_XP_FACTORY_TEST;
51 49
52 SkRegion::Op fRegionOp; 50 SkRegion::Op fRegionOp;
53 bool fInvertCoverage; 51 bool fInvertCoverage;
54 52
55 typedef GrXPFactory INHERITED; 53 typedef GrXPFactory INHERITED;
56 }; 54 };
57 #endif 55 #endif
58 56
OLDNEW
« no previous file with comments | « include/gpu/GrXferProcessor.h ('k') | include/gpu/effects/GrPorterDuffXferProcessor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698