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:
parent
bd220a9ebf
commit
8501afde18
@ -20,11 +20,11 @@ public:
|
||||
GrSurfaceProxyView() = default;
|
||||
|
||||
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.
|
||||
explicit GrSurfaceProxyView(sk_sp<GrSurfaceProxy> proxy)
|
||||
: fProxy(proxy), fOrigin(kTopLeft_GrSurfaceOrigin) {}
|
||||
: fProxy(std::move(proxy)), fOrigin(kTopLeft_GrSurfaceOrigin) {}
|
||||
|
||||
GrSurfaceProxyView(GrSurfaceProxyView&& view) = default;
|
||||
GrSurfaceProxyView(const GrSurfaceProxyView&) = default;
|
||||
|
Loading…
Reference in New Issue
Block a user