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

Unified Diff: mojo/skia/ganesh_surface.cc

Issue 1236953002: Roll Skia to 7b971f0152299ae9a924252a9bfd220318497bdd (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: now with less crash on startup Created 5 years, 5 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 | « cc/resources/resource_provider.cc ('k') | skia/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/skia/ganesh_surface.cc
diff --git a/mojo/skia/ganesh_surface.cc b/mojo/skia/ganesh_surface.cc
index 2576db0a41407aba5c504a3b122c2f529a0b34d9..11fe502cb82f7587a3a82dc6240ac9925c17bf93 100644
--- a/mojo/skia/ganesh_surface.cc
+++ b/mojo/skia/ganesh_surface.cc
@@ -18,7 +18,8 @@ GaneshSurface::GaneshSurface(GaneshContext* context,
desc.fTextureHandle = texture_->texture_id();
DCHECK(texture_->texture_id());
- auto gr_texture = skia::AdoptRef(context->gr()->wrapBackendTexture(desc));
+ auto gr_texture = skia::AdoptRef(
+ context->gr()->textureProvider()->wrapBackendTexture(desc));
DCHECK(gr_texture);
surface_ = skia::AdoptRef(
SkSurface::NewRenderTargetDirect(gr_texture->asRenderTarget()));
« no previous file with comments | « cc/resources/resource_provider.cc ('k') | skia/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698