| OLD | NEW |
| 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 25 matching lines...) Expand all Loading... |
| 36 output->fWillBlendWithDst = 0; | 36 output->fWillBlendWithDst = 0; |
| 37 } | 37 } |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 GrDisableColorXPFactory(); | 40 GrDisableColorXPFactory(); |
| 41 | 41 |
| 42 GrXferProcessor* onCreateXferProcessor(const GrProcOptInfo& colorPOI, | 42 GrXferProcessor* onCreateXferProcessor(const GrProcOptInfo& colorPOI, |
| 43 const GrProcOptInfo& coveragePOI, | 43 const GrProcOptInfo& coveragePOI, |
| 44 const GrDeviceCoordTexture* dstCopy)
const SK_OVERRIDE; | 44 const GrDeviceCoordTexture* dstCopy)
const SK_OVERRIDE; |
| 45 | 45 |
| 46 bool willReadDstColor() const SK_OVERRIDE { return false; } | 46 bool willReadDstColor(const GrProcOptInfo& colorPOI, |
| 47 const GrProcOptInfo& coveragePOI) const SK_OVERRIDE { |
| 48 return false; |
| 49 } |
| 47 | 50 |
| 48 bool onIsEqual(const GrXPFactory& xpfBase) const SK_OVERRIDE { | 51 bool onIsEqual(const GrXPFactory& xpfBase) const SK_OVERRIDE { |
| 49 return true; | 52 return true; |
| 50 } | 53 } |
| 51 | 54 |
| 52 GR_DECLARE_XP_FACTORY_TEST; | 55 GR_DECLARE_XP_FACTORY_TEST; |
| 53 | 56 |
| 54 typedef GrXPFactory INHERITED; | 57 typedef GrXPFactory INHERITED; |
| 55 }; | 58 }; |
| 56 | 59 |
| 57 #endif | 60 #endif |
| 58 | 61 |
| OLD | NEW |