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

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

Issue 914003003: Use dst copies in porter duffer XP to correctly render certain blends. (Closed) Base URL: https://skia.googlesource.com/skia.git@prePDDstCopy
Patch Set: Rebase 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 GrProcOptInfo& colorPOI, 80 GrXferProcessor* onCreateXferProcessor(const GrDrawTargetCaps& caps,
81 const GrProcOptInfo& colorPOI,
81 const GrProcOptInfo& coveragePOI, 82 const GrProcOptInfo& coveragePOI,
82 const GrDeviceCoordTexture* dstCopy) const SK_OVERRIDE; 83 const GrDeviceCoordTexture* dstCopy) const SK_OVERRIDE;
83 84
84 bool willReadDstColor(const GrProcOptInfo& colorPOI, 85 bool willReadDstColor(const GrDrawTargetCaps& caps,
86 const GrProcOptInfo& colorPOI,
85 const GrProcOptInfo& coveragePOI) const SK_OVERRIDE { 87 const GrProcOptInfo& coveragePOI) const SK_OVERRIDE {
86 return true; 88 return true;
87 } 89 }
88 90
89 bool onIsEqual(const GrXPFactory& xpfBase) const SK_OVERRIDE { 91 bool onIsEqual(const GrXPFactory& xpfBase) const SK_OVERRIDE {
90 const GrCustomXPFactory& xpf = xpfBase.cast<GrCustomXPFactory>(); 92 const GrCustomXPFactory& xpf = xpfBase.cast<GrCustomXPFactory>();
91 return fMode == xpf.fMode; 93 return fMode == xpf.fMode;
92 } 94 }
93 95
94 GR_DECLARE_XP_FACTORY_TEST; 96 GR_DECLARE_XP_FACTORY_TEST;
95 97
96 SkXfermode::Mode fMode; 98 SkXfermode::Mode fMode;
97 99
98 typedef GrXPFactory INHERITED; 100 typedef GrXPFactory INHERITED;
99 }; 101 };
100 #endif 102 #endif
101 103
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