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

Unified Diff: mojo/skia/ganesh_texture_surface.cc

Issue 2011713003: Roll skia to 8cc209111876b7c78b5ec577c9221d8ed5e21024 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 7 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 | « mojo/skia/ganesh_texture_surface.h ('k') | mojo/skia/gl_bindings_skia.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/skia/ganesh_texture_surface.cc
diff --git a/mojo/skia/ganesh_texture_surface.cc b/mojo/skia/ganesh_texture_surface.cc
index c296020eb557943eda48c0ece823e8e575a715bb..5b034295a26687db03c56111f1c55dea3a7bd2e3 100644
--- a/mojo/skia/ganesh_texture_surface.cc
+++ b/mojo/skia/ganesh_texture_surface.cc
@@ -34,8 +34,8 @@ GaneshTextureSurface::GaneshTextureSurface(const GaneshContext::Scope& scope,
desc.fSampleCnt = 0;
desc.fTextureHandle = reinterpret_cast<GrBackendObject>(&info);
- surface_ = ::skia::AdoptRef(SkSurface::NewFromBackendTexture(
- scope.gr_context().get(), desc, nullptr));
+ surface_ = SkSurface::MakeFromBackendTexture(scope.gr_context().get(), desc,
+ nullptr);
DCHECK(surface_);
}
@@ -43,7 +43,7 @@ GaneshTextureSurface::~GaneshTextureSurface() {}
std::unique_ptr<GLTexture> GaneshTextureSurface::TakeTexture() {
surface_->getCanvas()->flush();
- surface_.clear();
+ surface_.reset();
return std::move(texture_);
}
« no previous file with comments | « mojo/skia/ganesh_texture_surface.h ('k') | mojo/skia/gl_bindings_skia.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698