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 13 matching lines...) Expand all Loading... |
24 } | 24 } |
25 | 25 |
26 private: | 26 private: |
27 GrDisableColorXPFactory(); | 27 GrDisableColorXPFactory(); |
28 | 28 |
29 GrXferProcessor* onCreateXferProcessor(const GrCaps& caps, | 29 GrXferProcessor* onCreateXferProcessor(const GrCaps& caps, |
30 const GrPipelineOptimizations& optimi
zations, | 30 const GrPipelineOptimizations& optimi
zations, |
31 bool hasMixedSamples, | 31 bool hasMixedSamples, |
32 const DstTexture* dstTexture) const o
verride; | 32 const DstTexture* dstTexture) const o
verride; |
33 | 33 |
34 bool onWillReadDstColor(const GrCaps& caps, | 34 bool willReadDstColor(const GrCaps& caps, |
35 const GrPipelineOptimizations& optimizations, | 35 const GrPipelineOptimizations& optimizations, |
36 bool hasMixedSamples) const override { | 36 bool hasMixedSamples) const override { |
37 return false; | 37 return false; |
38 } | 38 } |
39 | 39 |
40 bool onIsEqual(const GrXPFactory& xpfBase) const override { | 40 bool onIsEqual(const GrXPFactory& xpfBase) const override { |
41 return true; | 41 return true; |
42 } | 42 } |
43 | 43 |
44 GR_DECLARE_XP_FACTORY_TEST; | 44 GR_DECLARE_XP_FACTORY_TEST; |
45 | 45 |
46 typedef GrXPFactory INHERITED; | 46 typedef GrXPFactory INHERITED; |
47 }; | 47 }; |
48 | 48 |
49 #endif | 49 #endif |
50 | 50 |
OLD | NEW |