Use std::move when constructing GrSurfaceProxyViews

Just passing the time while waiting on some bots.

Change-Id: I4ca823732bbc2a408f582508fb9d5c69689a029f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/306056
Commit-Queue: Adlai Holler <adlai@google.com>
Commit-Queue: Michael Ludwig <michaelludwig@google.com>
Auto-Submit: Adlai Holler <adlai@google.com>
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
This commit is contained in:
Adlai Holler 2020-07-27 14:38:43 -04:00 committed by Skia Commit-Bot
parent bd220a9ebf
commit 8501afde18

View File

@ -20,11 +20,11 @@ public:
GrSurfaceProxyView() = default; GrSurfaceProxyView() = default;
GrSurfaceProxyView(sk_sp<GrSurfaceProxy> proxy, GrSurfaceOrigin origin, GrSwizzle swizzle) GrSurfaceProxyView(sk_sp<GrSurfaceProxy> proxy, GrSurfaceOrigin origin, GrSwizzle swizzle)
: fProxy(proxy), fOrigin(origin), fSwizzle(swizzle) {} : fProxy(std::move(proxy)), fOrigin(origin), fSwizzle(swizzle) {}
// This entry point is used when we don't care about the origin or the swizzle. // This entry point is used when we don't care about the origin or the swizzle.
explicit GrSurfaceProxyView(sk_sp<GrSurfaceProxy> proxy) explicit GrSurfaceProxyView(sk_sp<GrSurfaceProxy> proxy)
: fProxy(proxy), fOrigin(kTopLeft_GrSurfaceOrigin) {} : fProxy(std::move(proxy)), fOrigin(kTopLeft_GrSurfaceOrigin) {}
GrSurfaceProxyView(GrSurfaceProxyView&& view) = default; GrSurfaceProxyView(GrSurfaceProxyView&& view) = default;
GrSurfaceProxyView(const GrSurfaceProxyView&) = default; GrSurfaceProxyView(const GrSurfaceProxyView&) = default;