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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 return true; | 64 return true; |
65 } | 65 } |
66 | 66 |
67 void getInvariantBlendedColor(const GrProcOptInfo& colorPOI, | 67 void getInvariantBlendedColor(const GrProcOptInfo& colorPOI, |
68 GrXPFactory::InvariantBlendedColor*) const ove
rride; | 68 GrXPFactory::InvariantBlendedColor*) const ove
rride; |
69 | 69 |
70 private: | 70 private: |
71 GrXferProcessor* onCreateXferProcessor(const GrCaps& caps, | 71 GrXferProcessor* onCreateXferProcessor(const GrCaps& caps, |
72 const GrProcOptInfo& colorPOI, | 72 const GrProcOptInfo& colorPOI, |
73 const GrProcOptInfo& coveragePOI, | 73 const GrProcOptInfo& coveragePOI, |
| 74 bool hasMixedSamples, |
74 const DstTexture*) const override; | 75 const DstTexture*) const override; |
75 | 76 |
76 bool willReadDstColor(const GrCaps& caps, | 77 bool willReadDstColor(const GrCaps& caps, |
77 const GrProcOptInfo& colorPOI, | 78 const GrProcOptInfo& colorPOI, |
78 const GrProcOptInfo& coveragePOI) const override; | 79 const GrProcOptInfo& coveragePOI, |
| 80 bool hasMixedSamples) const override; |
79 | 81 |
80 bool onIsEqual(const GrXPFactory& xpfBase) const override { | 82 bool onIsEqual(const GrXPFactory& xpfBase) const override { |
81 const GrCustomXPFactory& xpf = xpfBase.cast<GrCustomXPFactory>(); | 83 const GrCustomXPFactory& xpf = xpfBase.cast<GrCustomXPFactory>(); |
82 return fMode == xpf.fMode; | 84 return fMode == xpf.fMode; |
83 } | 85 } |
84 | 86 |
85 GR_DECLARE_XP_FACTORY_TEST; | 87 GR_DECLARE_XP_FACTORY_TEST; |
86 | 88 |
87 SkXfermode::Mode fMode; | 89 SkXfermode::Mode fMode; |
88 GrBlendEquation fHWBlendEquation; | 90 GrBlendEquation fHWBlendEquation; |
89 | 91 |
90 typedef GrXPFactory INHERITED; | 92 typedef GrXPFactory INHERITED; |
91 }; | 93 }; |
92 #endif | 94 #endif |
93 | 95 |
OLD | NEW |