Index: src/effects/SkColorCubeFilter.cpp |
diff --git a/src/effects/SkColorCubeFilter.cpp b/src/effects/SkColorCubeFilter.cpp |
index f71f4719b4e3333a9a42c5b83776356c0e01543f..e2aade75e551bed39458775883d61cab26dfcb55 100644 |
--- a/src/effects/SkColorCubeFilter.cpp |
+++ b/src/effects/SkColorCubeFilter.cpp |
@@ -337,7 +337,8 @@ void GrColorCubeEffect::GLProcessor::GenKey(const GrProcessor& proc, |
const GrGLCaps&, GrProcessorKeyBuilder* b) { |
} |
-GrFragmentProcessor* SkColorCubeFilter::asFragmentProcessor(GrContext* context) const { |
+bool SkColorCubeFilter::asFragmentProcessors(GrContext* context, |
+ SkTDArray<GrFragmentProcessor*>* array) const { |
static const GrUniqueKey::Domain kDomain = GrUniqueKey::GenerateDomain(); |
GrUniqueKey key; |
GrUniqueKey::Builder builder(&key, kDomain, 2); |
@@ -358,6 +359,13 @@ GrFragmentProcessor* SkColorCubeFilter::asFragmentProcessor(GrContext* context) |
} |
} |
- return textureCube ? GrColorCubeEffect::Create(textureCube) : NULL; |
+ GrFragmentProcessor* frag = textureCube ? GrColorCubeEffect::Create(textureCube) : NULL; |
+ if (frag) { |
+ if (array) { |
+ *array->append() = frag; |
+ } |
+ return true; |
Noel Gordon
2015/06/09 17:29:03
If array was NULL (maybe doesn't happen in practic
bsalomon
2015/06/12 15:20:36
Definitely not!
https://codereview.chromium.org/1
|
+ } |
+ return false; |
} |
#endif |