From 745c398754bb9e57db9a727047e3815b774d33d8 Mon Sep 17 00:00:00 2001 From: Cary Clark Date: Wed, 24 Jan 2018 15:37:13 -0500 Subject: minor imageinfo fixes teeny fixes to SkImageInfo.h to get ready for documenting it. Selected SkImageInfo.h as Herb discovered that global enums (especially forward declared ones) break bookmaker. TBR=reed@google.com Bug: skia:6898 Change-Id: I6ecf4f9dd7022c810f3d7a6cfee10fb07aa49aee Reviewed-on: https://skia-review.googlesource.com/99342 Reviewed-by: Cary Clark Reviewed-by: Cary Clark Commit-Queue: Cary Clark --- include/core/SkImageInfo.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/core/SkImageInfo.h b/include/core/SkImageInfo.h index 5d2b74af39..24e356b87e 100644 --- a/include/core/SkImageInfo.h +++ b/include/core/SkImageInfo.h @@ -45,7 +45,7 @@ enum SkAlphaType { */ kUnpremul_SkAlphaType, - kLastEnum_SkAlphaType = kUnpremul_SkAlphaType + kLastEnum_SkAlphaType = kUnpremul_SkAlphaType, }; static inline bool SkAlphaTypeIsOpaque(SkAlphaType at) { @@ -82,7 +82,7 @@ enum SkColorType { #elif SK_PMCOLOR_BYTE_ORDER(R,G,B,A) kN32_SkColorType = kRGBA_8888_SkColorType, #else - #error "SK_*32_SHFIT values must correspond to BGRA or RGBA byte order" + #error "SK_*32_SHIFT values must correspond to BGRA or RGBA byte order" #endif }; @@ -161,7 +161,7 @@ enum SkYUVColorSpace { range. See http://en.wikipedia.org/wiki/Rec._709 for details. */ kRec709_SkYUVColorSpace, - kLastEnum_SkYUVColorSpace = kRec709_SkYUVColorSpace + kLastEnum_SkYUVColorSpace = kRec709_SkYUVColorSpace, }; /////////////////////////////////////////////////////////////////////////////// @@ -297,8 +297,8 @@ public: return !(*this == other); } - void unflatten(SkReadBuffer&); - void flatten(SkWriteBuffer&) const; + void unflatten(SkReadBuffer& buffer); + void flatten(SkWriteBuffer& buffer) const; /** * Returns the size (in bytes) of the image buffer that this info needs, given the specified -- cgit v1.2.3