Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(501)

Unified Diff: src/views/SkWindow.cpp

Issue 1817383002: switch surface to sk_sp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/utils/SkRGBAToYUV.cpp ('k') | tests/BlurTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « src/utils/SkRGBAToYUV.cpp ('k') | tests/BlurTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698