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 14 matching lines...) Expand all Loading... |
25 | 25 |
26 void getInvariantOutput(const GrProcOptInfo& colorPOI, const GrProcOptInfo&
coveragePOI, | 26 void getInvariantOutput(const GrProcOptInfo& colorPOI, const GrProcOptInfo&
coveragePOI, |
27 GrXPFactory::InvariantOutput* output) const override
{ | 27 GrXPFactory::InvariantOutput* output) const override
{ |
28 output->fBlendedColorFlags = 0; | 28 output->fBlendedColorFlags = 0; |
29 output->fWillBlendWithDst = 0; | 29 output->fWillBlendWithDst = 0; |
30 } | 30 } |
31 | 31 |
32 private: | 32 private: |
33 GrDisableColorXPFactory(); | 33 GrDisableColorXPFactory(); |
34 | 34 |
35 GrXferProcessor* onCreateXferProcessor(const GrDrawTargetCaps& caps, | 35 GrXferProcessor* onCreateXferProcessor(const GrCaps& caps, |
36 const GrProcOptInfo& colorPOI, | 36 const GrProcOptInfo& colorPOI, |
37 const GrProcOptInfo& coveragePOI, | 37 const GrProcOptInfo& coveragePOI, |
38 const GrDeviceCoordTexture* dstCopy)
const override; | 38 const GrDeviceCoordTexture* dstCopy)
const override; |
39 | 39 |
40 bool willReadDstColor(const GrDrawTargetCaps& caps, | 40 bool willReadDstColor(const GrCaps& caps, |
41 const GrProcOptInfo& colorPOI, | 41 const GrProcOptInfo& colorPOI, |
42 const GrProcOptInfo& coveragePOI) const override { | 42 const GrProcOptInfo& coveragePOI) 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 |