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 16 matching lines...) Expand all Loading... |
27 blendedColor->fWillBlendWithDst = false; | 27 blendedColor->fWillBlendWithDst = false; |
28 } | 28 } |
29 | 29 |
30 private: | 30 private: |
31 GrDisableColorXPFactory(); | 31 GrDisableColorXPFactory(); |
32 | 32 |
33 GrXferProcessor* onCreateXferProcessor(const GrCaps& caps, | 33 GrXferProcessor* onCreateXferProcessor(const GrCaps& caps, |
34 const GrProcOptInfo& colorPOI, | 34 const GrProcOptInfo& colorPOI, |
35 const GrProcOptInfo& coveragePOI, | 35 const GrProcOptInfo& coveragePOI, |
36 bool hasMixedSamples, | 36 bool hasMixedSamples, |
37 const DstTexture* dstTexture) const o
verride; | 37 const DstTexture* dstTexture, GrRende
rTarget* dst) const override; |
38 | 38 |
39 bool willReadDstColor(const GrCaps& caps, | 39 bool willReadDstColor(const GrCaps& caps, |
40 const GrProcOptInfo& colorPOI, | 40 const GrProcOptInfo& colorPOI, |
41 const GrProcOptInfo& coveragePOI, | 41 const GrProcOptInfo& coveragePOI, |
42 bool hasMixedSamples) const override { | 42 bool hasMixedSamples) const override { |
43 return false; | 43 return false; |
44 } | 44 } |
45 | 45 |
46 bool onIsEqual(const GrXPFactory& xpfBase) const override { | 46 bool onIsEqual(const GrXPFactory& xpfBase) const override { |
47 return true; | 47 return true; |
48 } | 48 } |
49 | 49 |
50 GR_DECLARE_XP_FACTORY_TEST; | 50 GR_DECLARE_XP_FACTORY_TEST; |
51 | 51 |
52 typedef GrXPFactory INHERITED; | 52 typedef GrXPFactory INHERITED; |
53 }; | 53 }; |
54 | 54 |
55 #endif | 55 #endif |
56 | 56 |
OLD | NEW |