add SkImage::newSurface
BUG=skia:
Review URL: https://codereview.chromium.org/741763002
diff --git a/src/image/SkImagePriv.h b/src/image/SkImagePriv.h
index e9d1d83..db3a089 100644
--- a/src/image/SkImagePriv.h
+++ b/src/image/SkImagePriv.h
@@ -11,8 +11,8 @@
#include "SkImage.h"
// Call this if you explicitly want to use/share this pixelRef in the image
-extern SkImage* SkNewImageFromPixelRef(const SkImageInfo&, SkPixelRef*,
- size_t rowBytes);
+extern SkImage* SkNewImageFromPixelRef(const SkImageInfo&, SkPixelRef*, size_t rowBytes,
+ const SkSurfaceProps*);
/**
* Examines the bitmap to decide if it can share the existing pixelRef, or
@@ -24,7 +24,7 @@
* SkImageInfo, or the bitmap's pixels cannot be accessed, this will return
* NULL.
*/
-extern SkImage* SkNewImageFromBitmap(const SkBitmap&, bool canSharePixelRef);
+extern SkImage* SkNewImageFromBitmap(const SkBitmap&, bool canSharePixelRef, const SkSurfaceProps*);
static inline size_t SkImageMinRowBytes(const SkImageInfo& info) {
return SkAlign4(info.minRowBytes());
@@ -45,4 +45,6 @@
// surface needs to perform a copy-on-write
extern void SkTextureImageSetTexture(SkImage* image, GrTexture* texture);
+extern SkImage* SkNewImageFromBitmapTexture(const SkBitmap&, int sampleCount);
+
#endif