Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Unified Diff: include/core/SkImageInfo.h

Issue 2052943002: SkPixmap::setColorSpace (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: std::move() Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/core/SkDraw.h ('k') | include/core/SkPixmap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkImageInfo.h
diff --git a/include/core/SkImageInfo.h b/include/core/SkImageInfo.h
index 743ca5948137f0cd7e8d816bc4b2a3c45c84981a..7dae2546453d689d84b6696037155a6c2843c6f8 100644
--- a/include/core/SkImageInfo.h
+++ b/include/core/SkImageInfo.h
@@ -280,6 +280,10 @@ public:
return SkImageInfo(fWidth, fHeight, newColorType, fAlphaType, fProfileType, fColorSpace);
}
+ SkImageInfo makeColorSpace(sk_sp<SkColorSpace> cs) const {
+ return SkImageInfo::Make(fWidth, fHeight, fColorType, fAlphaType, std::move(cs));
+ }
+
int bytesPerPixel() const { return SkColorTypeBytesPerPixel(fColorType); }
int shiftPerPixel() const { return SkColorTypeShiftPerPixel(fColorType); }
« no previous file with comments | « include/core/SkDraw.h ('k') | include/core/SkPixmap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698