| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |