Index: src/image/SkImagePriv.h |
diff --git a/src/image/SkImagePriv.h b/src/image/SkImagePriv.h |
index 188b16d530fef1f9124d0bbb19ee6085e16a1e2a..bf28f598c50f85c654270d16ff43b5715c23453c 100644 |
--- a/src/image/SkImagePriv.h |
+++ b/src/image/SkImagePriv.h |
@@ -15,10 +15,6 @@ class SkPicture; |
extern SkBitmap::Config SkImageInfoToBitmapConfig(const SkImageInfo&); |
-extern int SkImageBytesPerPixel(SkColorType); |
- |
-extern bool SkBitmapToImageInfo(const SkBitmap&, SkImageInfo*); |
- |
// Call this if you explicitly want to use/share this pixelRef in the image |
extern SkImage* SkNewImageFromPixelRef(const SkImageInfo&, SkPixelRef*, |
size_t rowBytes); |
@@ -48,8 +44,7 @@ extern void SkImagePrivDrawPicture(SkCanvas*, SkPicture*, |
extern SkImage* SkNewImageFromPicture(const SkPicture*); |
static inline size_t SkImageMinRowBytes(const SkImageInfo& info) { |
- size_t rb = info.fWidth * SkImageBytesPerPixel(info.fColorType); |
- return SkAlign4(rb); |
+ return SkAlign4(info.minRowBytes()); |
} |
// Given an image created from SkNewImageFromBitmap, return its pixelref. This |