| Index: include/core/SkImageInfo.h
 | 
| diff --git a/include/core/SkImageInfo.h b/include/core/SkImageInfo.h
 | 
| index 83919549d53e17f68856c5244ce26569dc7ddc9c..d66158d02c56506cd4b72f8286aea0be8a2678cc 100644
 | 
| --- a/include/core/SkImageInfo.h
 | 
| +++ b/include/core/SkImageInfo.h
 | 
| @@ -189,6 +189,14 @@ struct SkImageInfo {
 | 
|  
 | 
|      SkISize dimensions() const { return SkISize::Make(fWidth, fHeight); }
 | 
|  
 | 
| +    /**
 | 
| +     *  Return a new ImageInfo with the same colortype and alphatype as this info,
 | 
| +     *  but with the specified width and height.
 | 
| +     */
 | 
| +    SkImageInfo makeWH(int newWidth, int newHeight) const {
 | 
| +        return SkImageInfo::Make(newWidth, newHeight, fColorType, fAlphaType);
 | 
| +    }
 | 
| +
 | 
|      int bytesPerPixel() const {
 | 
|          return SkColorTypeBytesPerPixel(fColorType);
 | 
|      }
 | 
| 
 |