Index: src/views/SkWindow.cpp |
diff --git a/src/views/SkWindow.cpp b/src/views/SkWindow.cpp |
index 056b3eab5098ee3c96fd4d5c0337753e3ba37c5b..481a1f9eb23ee490bd72f8bd8c340c30e3c23734 100644 |
--- a/src/views/SkWindow.cpp |
+++ b/src/views/SkWindow.cpp |
@@ -32,7 +32,8 @@ SkWindow::~SkWindow() { |
SkSurface* SkWindow::createSurface() { |
const SkBitmap& bm = this->getBitmap(); |
- return SkSurface::NewRasterDirect(bm.info(), bm.getPixels(), bm.rowBytes(), &fSurfaceProps); |
+ return SkSurface::MakeRasterDirect(bm.info(), bm.getPixels(), bm.rowBytes(), |
+ &fSurfaceProps).release(); |
} |
void SkWindow::setMatrix(const SkMatrix& matrix) { |