OLD | NEW |
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 Loading... |
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 |
OLD | NEW |