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

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

Issue 851143003: Remove willReadDst from GrFragmentProcessor. (Closed) Base URL: https://skia.googlesource.com/skia.git@xferXP
Patch Set: Created 5 years, 11 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
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 GrDisableColorXP_DEFINED 8 #ifndef GrDisableColorXP_DEFINED
9 #define GrDisableColorXP_DEFINED 9 #define GrDisableColorXP_DEFINED
10 10
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 } 74 }
75 75
76 bool canTweakAlphaForCoverage() const SK_OVERRIDE { return true; } 76 bool canTweakAlphaForCoverage() const SK_OVERRIDE { return true; }
77 77
78 void getInvariantOutput(const GrProcOptInfo& colorPOI, const GrProcOptInfo& coveragePOI, 78 void getInvariantOutput(const GrProcOptInfo& colorPOI, const GrProcOptInfo& coveragePOI,
79 GrXPFactory::InvariantOutput* output) const SK_OVERR IDE { 79 GrXPFactory::InvariantOutput* output) const SK_OVERR IDE {
80 output->fBlendedColorFlags = 0; 80 output->fBlendedColorFlags = 0;
81 output->fWillBlendWithDst = 0; 81 output->fWillBlendWithDst = 0;
82 } 82 }
83 83
84 bool willReadDst(const GrProcOptInfo& colorPOI, 84 bool willReadDst() const SK_OVERRIDE { return false; }
85 const GrProcOptInfo& coveragePOI) const SK_OVERRIDE {
86 return false;
87 }
88 85
89 private: 86 private:
90 GrDisableColorXPFactory(); 87 GrDisableColorXPFactory();
91 88
92 bool onIsEqual(const GrXPFactory& xpfBase) const SK_OVERRIDE { 89 bool onIsEqual(const GrXPFactory& xpfBase) const SK_OVERRIDE {
93 return true; 90 return true;
94 } 91 }
95 92
96 GR_DECLARE_XP_FACTORY_TEST; 93 GR_DECLARE_XP_FACTORY_TEST;
97 94
98 typedef GrXPFactory INHERITED; 95 typedef GrXPFactory INHERITED;
99 }; 96 };
100 97
101 #endif 98 #endif
102 99
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698