diff options
author | Brian Salomon <bsalomon@google.com> | 2017-07-31 16:27:23 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-07-31 20:51:42 +0000 |
commit | 96271cd1805d55b1a985652eebd0399ebe415283 (patch) | |
tree | 951bef0f222b0eb3c087901cd810f805593e5965 /src/gpu/GrFragmentProcessor.h | |
parent | f3ce7e3c673fd4ace2ca56effe4cfd2908919b9d (diff) |
Require clone() be implemented by GrFragmentProcessor subclasses
Change-Id: I66ba0978e5748806d563ff4f26000e4e0095ed24
Reviewed-on: https://skia-review.googlesource.com/29042
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrFragmentProcessor.h')
-rw-r--r-- | src/gpu/GrFragmentProcessor.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gpu/GrFragmentProcessor.h b/src/gpu/GrFragmentProcessor.h index 9c608086dd..0784031d30 100644 --- a/src/gpu/GrFragmentProcessor.h +++ b/src/gpu/GrFragmentProcessor.h @@ -88,11 +88,9 @@ public: /** * Makes a copy of this fragment processor that draws equivalently to the original. - * If the processor has child processors they are cloned as well. Currently this - * has a default implementation that fails. This is temporary until it can be implemented - * for all fragemnt processor leaf classes. + * If the processor has child processors they are cloned as well. */ - virtual sk_sp<GrFragmentProcessor> clone() const { return nullptr; } + virtual sk_sp<GrFragmentProcessor> clone() const = 0; GrGLSLFragmentProcessor* createGLSLInstance() const; |