| Index: src/effects/SkLumaColorFilter.cpp
|
| diff --git a/src/effects/SkLumaColorFilter.cpp b/src/effects/SkLumaColorFilter.cpp
|
| index 20e0659dfeff0625bc1787054fff2f9d34d22c6f..b7860e0a0b9a1848fb73b49debd972fb332b6d8a 100644
|
| --- a/src/effects/SkLumaColorFilter.cpp
|
| +++ b/src/effects/SkLumaColorFilter.cpp
|
| @@ -119,7 +119,16 @@ private:
|
| }
|
| };
|
|
|
| -GrFragmentProcessor* SkLumaColorFilter::asFragmentProcessor(GrContext*) const {
|
| - return LumaColorFilterEffect::Create();
|
| +bool SkLumaColorFilter::asFragmentProcessors(GrContext*,
|
| + SkTDArray<GrFragmentProcessor*>* array) const {
|
| +
|
| + GrFragmentProcessor* frag = LumaColorFilterEffect::Create();
|
| + if (frag) {
|
| + if (array) {
|
| + *array->append() = frag;
|
| + }
|
| + return true;
|
| + }
|
| + return false;
|
| }
|
| #endif
|
|
|