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 onWillReadDstColor(const GrCaps&, const GrPipelineOptimizations&) const
override { |
35 const GrPipelineOptimizations& optimizations, | |
36 bool hasMixedSamples) const override { | |
37 return false; | 35 return false; |
38 } | 36 } |
39 | 37 |
40 bool onIsEqual(const GrXPFactory& xpfBase) const override { | 38 bool onIsEqual(const GrXPFactory& xpfBase) const override { |
41 return true; | 39 return true; |
42 } | 40 } |
43 | 41 |
44 GR_DECLARE_XP_FACTORY_TEST; | 42 GR_DECLARE_XP_FACTORY_TEST; |
45 | 43 |
46 typedef GrXPFactory INHERITED; | 44 typedef GrXPFactory INHERITED; |
47 }; | 45 }; |
48 | 46 |
49 #endif | 47 #endif |
OLD | NEW |