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/GrCoordTransform.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/GrCoordTransform.h')
-rw-r--r-- | src/gpu/GrCoordTransform.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gpu/GrCoordTransform.h b/src/gpu/GrCoordTransform.h index 5bccf5c6d8..5d3faa3047 100644 --- a/src/gpu/GrCoordTransform.h +++ b/src/gpu/GrCoordTransform.h @@ -18,7 +18,7 @@ class GrTexture; * A class representing a linear transformation of local coordinates. GrFragnentProcessors * these transformations, and the GrGeometryProcessor implements the transformation. */ -class GrCoordTransform : SkNoncopyable { +class GrCoordTransform { public: GrCoordTransform() : fProxy(nullptr) @@ -27,6 +27,8 @@ public: SkDEBUGCODE(fInProcessor = false); } + GrCoordTransform(const GrCoordTransform&) = default; + /** * Create a transformation that maps [0, 1] to a proxy's boundaries. The proxy origin also * implies whether a y-reversal should be performed. @@ -129,7 +131,6 @@ private: const GrTextureProxy* fProxy; bool fNormalize; bool fReverseY; - typedef SkNoncopyable INHERITED; #ifdef SK_DEBUG public: |