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

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

Issue 912413002: Pass in ProcOptInfos into willNeedDstCopy on XPs (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Review cleanup Created 5 years, 10 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 | « src/gpu/GrXferProcessor.cpp ('k') | src/gpu/effects/GrCustomXfermode.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 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 21 matching lines...) Expand all
32 void getInvariantOutput(const GrProcOptInfo& colorPOI, const GrProcOptInfo& coveragePOI, 32 void getInvariantOutput(const GrProcOptInfo& colorPOI, const GrProcOptInfo& coveragePOI,
33 GrXPFactory::InvariantOutput*) const SK_OVERRIDE; 33 GrXPFactory::InvariantOutput*) const SK_OVERRIDE;
34 34
35 private: 35 private:
36 GrCoverageSetOpXPFactory(SkRegion::Op regionOp, bool invertCoverage); 36 GrCoverageSetOpXPFactory(SkRegion::Op regionOp, bool invertCoverage);
37 37
38 GrXferProcessor* onCreateXferProcessor(const GrProcOptInfo& colorPOI, 38 GrXferProcessor* onCreateXferProcessor(const GrProcOptInfo& colorPOI,
39 const GrProcOptInfo& coveragePOI, 39 const GrProcOptInfo& coveragePOI,
40 const GrDeviceCoordTexture* dstCopy) const SK_OVERRIDE; 40 const GrDeviceCoordTexture* dstCopy) const SK_OVERRIDE;
41 41
42 bool willReadDstColor() const SK_OVERRIDE { return false; } 42 bool willReadDstColor(const GrProcOptInfo& colorPOI,
43 const GrProcOptInfo& coveragePOI) const SK_OVERRIDE {
44 return false;
45 }
43 46
44 bool onIsEqual(const GrXPFactory& xpfBase) const SK_OVERRIDE { 47 bool onIsEqual(const GrXPFactory& xpfBase) const SK_OVERRIDE {
45 const GrCoverageSetOpXPFactory& xpf = xpfBase.cast<GrCoverageSetOpXPFact ory>(); 48 const GrCoverageSetOpXPFactory& xpf = xpfBase.cast<GrCoverageSetOpXPFact ory>();
46 return fRegionOp == xpf.fRegionOp; 49 return fRegionOp == xpf.fRegionOp;
47 } 50 }
48 51
49 GR_DECLARE_XP_FACTORY_TEST; 52 GR_DECLARE_XP_FACTORY_TEST;
50 53
51 SkRegion::Op fRegionOp; 54 SkRegion::Op fRegionOp;
52 bool fInvertCoverage; 55 bool fInvertCoverage;
53 56
54 typedef GrXPFactory INHERITED; 57 typedef GrXPFactory INHERITED;
55 }; 58 };
56 #endif 59 #endif
57 60
OLDNEW
« no previous file with comments | « src/gpu/GrXferProcessor.cpp ('k') | src/gpu/effects/GrCustomXfermode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698