| Index: src/image/SkSurface.cpp
|
| diff --git a/src/image/SkSurface.cpp b/src/image/SkSurface.cpp
|
| index fed13a284beaed2202f5d2bde92f71032dcc777f..711dfda6a43c9662d9ef6c1586f5a5e87619b014 100644
|
| --- a/src/image/SkSurface.cpp
|
| +++ b/src/image/SkSurface.cpp
|
| @@ -164,9 +164,13 @@ SkCanvas* SkSurface::getCanvas() {
|
| }
|
|
|
| SkImage* SkSurface::newImageSnapshot(Budgeted budgeted) {
|
| - SkImage* image = asSB(this)->getCachedImage(budgeted);
|
| - SkSafeRef(image); // the caller will call unref() to balance this
|
| - return image;
|
| + // the caller will call unref() to balance this
|
| + return asSB(this)->refCachedImage(budgeted, kNo_ForceUnique);
|
| +}
|
| +
|
| +SkImage* SkSurface::newImageSnapshot(Budgeted budgeted, ForceUnique unique) {
|
| + // the caller will call unref() to balance this
|
| + return asSB(this)->refCachedImage(budgeted, unique);
|
| }
|
|
|
| SkSurface* SkSurface::newSurface(const SkImageInfo& info) {
|
|
|