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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 /////////////////////////////////////////////////////////////////////////////// | 96 /////////////////////////////////////////////////////////////////////////////// |
97 | 97 |
98 GrDisableColorXPFactory::GrDisableColorXPFactory() { | 98 GrDisableColorXPFactory::GrDisableColorXPFactory() { |
99 this->initClassID<GrDisableColorXPFactory>(); | 99 this->initClassID<GrDisableColorXPFactory>(); |
100 } | 100 } |
101 | 101 |
102 GrXferProcessor* | 102 GrXferProcessor* |
103 GrDisableColorXPFactory::onCreateXferProcessor(const GrCaps& caps, | 103 GrDisableColorXPFactory::onCreateXferProcessor(const GrCaps& caps, |
104 const GrProcOptInfo& colorPOI, | 104 const GrProcOptInfo& colorPOI, |
105 const GrProcOptInfo& covPOI, | 105 const GrProcOptInfo& covPOI, |
106 const DstTexture* dst) const { | 106 const GrDeviceCoordTexture* dstCo
py) const { |
107 SkASSERT(!dst); | |
108 return DisableColorXP::Create(); | 107 return DisableColorXP::Create(); |
109 } | 108 } |
110 | 109 |
111 GR_DEFINE_XP_FACTORY_TEST(GrDisableColorXPFactory); | 110 GR_DEFINE_XP_FACTORY_TEST(GrDisableColorXPFactory); |
112 | 111 |
113 GrXPFactory* GrDisableColorXPFactory::TestCreate(SkRandom* random, | 112 GrXPFactory* GrDisableColorXPFactory::TestCreate(SkRandom* random, |
114 GrContext*, | 113 GrContext*, |
115 const GrCaps&, | 114 const GrCaps&, |
116 GrTexture*[]) { | 115 GrTexture*[]) { |
117 return GrDisableColorXPFactory::Create(); | 116 return GrDisableColorXPFactory::Create(); |
118 } | 117 } |
119 | 118 |
OLD | NEW |