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

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

Issue 923153003: Revert of Use dst copies in porter duffer XP to correctly render certain blends. (Closed) Base URL: https://skia.googlesource.com/skia.git@prePDDstCopy
Patch Set: 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/effects/GrCustomXfermode.cpp ('k') | src/gpu/effects/GrDisableColorXP.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 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 #ifndef GrCustomXfermodePriv_DEFINED 8 #ifndef GrCustomXfermodePriv_DEFINED
9 #define GrCustomXfermodePriv_DEFINED 9 #define GrCustomXfermodePriv_DEFINED
10 10
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 } 70 }
71 71
72 bool canTweakAlphaForCoverage() const SK_OVERRIDE { 72 bool canTweakAlphaForCoverage() const SK_OVERRIDE {
73 return false; 73 return false;
74 } 74 }
75 75
76 void getInvariantOutput(const GrProcOptInfo& colorPOI, const GrProcOptInfo& coveragePOI, 76 void getInvariantOutput(const GrProcOptInfo& colorPOI, const GrProcOptInfo& coveragePOI,
77 GrXPFactory::InvariantOutput*) const SK_OVERRIDE; 77 GrXPFactory::InvariantOutput*) const SK_OVERRIDE;
78 78
79 private: 79 private:
80 GrXferProcessor* onCreateXferProcessor(const GrDrawTargetCaps& caps, 80 GrXferProcessor* onCreateXferProcessor(const GrProcOptInfo& colorPOI,
81 const GrProcOptInfo& colorPOI,
82 const GrProcOptInfo& coveragePOI, 81 const GrProcOptInfo& coveragePOI,
83 const GrDeviceCoordTexture* dstCopy) const SK_OVERRIDE; 82 const GrDeviceCoordTexture* dstCopy) const SK_OVERRIDE;
84 83
85 bool willReadDstColor(const GrDrawTargetCaps& caps, 84 bool willReadDstColor(const GrProcOptInfo& colorPOI,
86 const GrProcOptInfo& colorPOI,
87 const GrProcOptInfo& coveragePOI) const SK_OVERRIDE { 85 const GrProcOptInfo& coveragePOI) const SK_OVERRIDE {
88 return true; 86 return true;
89 } 87 }
90 88
91 bool onIsEqual(const GrXPFactory& xpfBase) const SK_OVERRIDE { 89 bool onIsEqual(const GrXPFactory& xpfBase) const SK_OVERRIDE {
92 const GrCustomXPFactory& xpf = xpfBase.cast<GrCustomXPFactory>(); 90 const GrCustomXPFactory& xpf = xpfBase.cast<GrCustomXPFactory>();
93 return fMode == xpf.fMode; 91 return fMode == xpf.fMode;
94 } 92 }
95 93
96 GR_DECLARE_XP_FACTORY_TEST; 94 GR_DECLARE_XP_FACTORY_TEST;
97 95
98 SkXfermode::Mode fMode; 96 SkXfermode::Mode fMode;
99 97
100 typedef GrXPFactory INHERITED; 98 typedef GrXPFactory INHERITED;
101 }; 99 };
102 #endif 100 #endif
103 101
OLDNEW
« no previous file with comments | « src/gpu/effects/GrCustomXfermode.cpp ('k') | src/gpu/effects/GrDisableColorXP.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698