Lines Matching defs:swizzle
22 GrSurfaceProxyView(sk_sp<GrSurfaceProxy> proxy, GrSurfaceOrigin origin, GrSwizzle swizzle)
23 : fProxy(std::move(proxy)), fOrigin(origin), fSwizzle(swizzle) {}
25 // This entry point is used when we don't care about the origin or the swizzle.
80 GrSwizzle swizzle() const { return fSwizzle; }
82 void concatSwizzle(GrSwizzle swizzle) { fSwizzle = GrSwizzle::Concat(fSwizzle, swizzle); }
84 GrSurfaceProxyView makeSwizzle(GrSwizzle swizzle) const & {
85 return {fProxy, fOrigin, GrSwizzle::Concat(fSwizzle, swizzle)};
88 GrSurfaceProxyView makeSwizzle(GrSwizzle swizzle) && {
89 return {std::move(fProxy), fOrigin, GrSwizzle::Concat(fSwizzle, swizzle)};
97 // the same origin and swizzle as the src view.
111 return {std::move(copy), src.origin(), src.swizzle()};
125 return {std::move(copy), src.origin(), src.swizzle()};
128 // This does not reset the origin or swizzle, so the View can still be used to access those