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

Side by Side Diff: src/gpu/effects/GrCustomXfermodePriv.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/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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 GrProcOptInfo& colorPOI,
81 const GrProcOptInfo& coveragePOI, 81 const GrProcOptInfo& coveragePOI,
82 const GrDeviceCoordTexture* dstCopy) const SK_OVERRIDE; 82 const GrDeviceCoordTexture* dstCopy) const SK_OVERRIDE;
83 83
84 bool willReadDstColor() const SK_OVERRIDE { return true; } 84 bool willReadDstColor(const GrProcOptInfo& colorPOI,
85 const GrProcOptInfo& coveragePOI) const SK_OVERRIDE {
86 return true;
87 }
85 88
86 bool onIsEqual(const GrXPFactory& xpfBase) const SK_OVERRIDE { 89 bool onIsEqual(const GrXPFactory& xpfBase) const SK_OVERRIDE {
87 const GrCustomXPFactory& xpf = xpfBase.cast<GrCustomXPFactory>(); 90 const GrCustomXPFactory& xpf = xpfBase.cast<GrCustomXPFactory>();
88 return fMode == xpf.fMode; 91 return fMode == xpf.fMode;
89 } 92 }
90 93
91 GR_DECLARE_XP_FACTORY_TEST; 94 GR_DECLARE_XP_FACTORY_TEST;
92 95
93 SkXfermode::Mode fMode; 96 SkXfermode::Mode fMode;
94 97
95 typedef GrXPFactory INHERITED; 98 typedef GrXPFactory INHERITED;
96 }; 99 };
97 #endif 100 #endif
98 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