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

Unified Diff: include/core/SkImageInfo.h

Issue 1513393002: Add ability to extract YUV planes from SkImage (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 4 years, 11 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
Index: include/core/SkImageInfo.h
diff --git a/include/core/SkImageInfo.h b/include/core/SkImageInfo.h
index 4b82ae6e2fb317cf2414cb09801d72efc26de423..58635db5e13f5083ee7433fed1c864c890234ede 100644
--- a/include/core/SkImageInfo.h
+++ b/include/core/SkImageInfo.h
@@ -206,6 +206,11 @@ public:
kLinear_SkColorProfileType);
}
+ static SkImageInfo MakeGray8(int width, int height) {
+ return SkImageInfo(width, height, kGray_8_SkColorType, kPremul_SkAlphaType,
+ kLinear_SkColorProfileType);
+ }
+
static SkImageInfo MakeUnknown(int width, int height) {
return SkImageInfo(width, height, kUnknown_SkColorType, kUnknown_SkAlphaType,
kLinear_SkColorProfileType);

Powered by Google App Engine
This is Rietveld 408576698