diff options
author | Brian Salomon <bsalomon@google.com> | 2017-07-25 14:59:03 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-07-25 19:25:41 +0000 |
commit | ffc2ec46da40776c0b8056bbbaa2f43e92b46729 (patch) | |
tree | f0cb82d197b0470acc534adedb1afa8f3ef702dd /src/gpu/effects/GrTextureDomain.h | |
parent | 816afd83f45ac72b6b3b9ffe418b4baef8ecbc42 (diff) |
Implement clone() for GrDisplacementEffect
This also adds copy constructors for:
GrTextureDomain
GrFragmentProcessor::TextureSampler
GrCoordTransform
Change-Id: I23cb85113e236f8b6fd1d91163c80d2a41931691
Reviewed-on: https://skia-review.googlesource.com/26621
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/effects/GrTextureDomain.h')
-rw-r--r-- | src/gpu/effects/GrTextureDomain.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gpu/effects/GrTextureDomain.h b/src/gpu/effects/GrTextureDomain.h index 8be1a2bc66..f6970ea46e 100644 --- a/src/gpu/effects/GrTextureDomain.h +++ b/src/gpu/effects/GrTextureDomain.h @@ -55,6 +55,8 @@ public: */ GrTextureDomain(GrTextureProxy*, const SkRect& domain, Mode, int index = -1); + GrTextureDomain(const GrTextureDomain&) = default; + const SkRect& domain() const { return fDomain; } Mode mode() const { return fMode; } |