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 #include "effects/GrDisableColorXP.h" | 8 #include "effects/GrDisableColorXP.h" |
9 #include "GrProcessor.h" | 9 #include "GrProcessor.h" |
10 #include "gl/GrGLXferProcessor.h" | 10 #include "gl/GrGLXferProcessor.h" |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 /////////////////////////////////////////////////////////////////////////////// | 94 /////////////////////////////////////////////////////////////////////////////// |
95 | 95 |
96 GrDisableColorXPFactory::GrDisableColorXPFactory() { | 96 GrDisableColorXPFactory::GrDisableColorXPFactory() { |
97 this->initClassID<GrDisableColorXPFactory>(); | 97 this->initClassID<GrDisableColorXPFactory>(); |
98 } | 98 } |
99 | 99 |
100 GrXferProcessor* | 100 GrXferProcessor* |
101 GrDisableColorXPFactory::onCreateXferProcessor(const GrCaps& caps, | 101 GrDisableColorXPFactory::onCreateXferProcessor(const GrCaps& caps, |
102 const GrProcOptInfo& colorPOI, | 102 const GrProcOptInfo& colorPOI, |
103 const GrProcOptInfo& covPOI, | 103 const GrProcOptInfo& covPOI, |
| 104 bool hasMixedSamples, |
104 const DstTexture* dst) const { | 105 const DstTexture* dst) const { |
105 return DisableColorXP::Create(); | 106 return DisableColorXP::Create(); |
106 } | 107 } |
107 | 108 |
108 GR_DEFINE_XP_FACTORY_TEST(GrDisableColorXPFactory); | 109 GR_DEFINE_XP_FACTORY_TEST(GrDisableColorXPFactory); |
109 | 110 |
110 GrXPFactory* GrDisableColorXPFactory::TestCreate(SkRandom* random, | 111 GrXPFactory* GrDisableColorXPFactory::TestCreate(SkRandom* random, |
111 GrContext*, | 112 GrContext*, |
112 const GrCaps&, | 113 const GrCaps&, |
113 GrTexture*[]) { | 114 GrTexture*[]) { |
114 return GrDisableColorXPFactory::Create(); | 115 return GrDisableColorXPFactory::Create(); |
115 } | 116 } |
116 | 117 |
OLD | NEW |