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

Unified Diff: mojo/skia/ganesh_surface.cc

Issue 759763002: Fix DCHECK(gr_texture) when running test_sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/gpu/gl_context_owner.h ('k') | sky/compositor/layer_host.cc » ('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 0954f2fd5981f7f42054edfb93bfd1b12422d5a1..2576db0a41407aba5c504a3b122c2f529a0b34d9 100644
--- a/mojo/skia/ganesh_surface.cc
+++ b/mojo/skia/ganesh_surface.cc
@@ -16,6 +16,7 @@ GaneshSurface::GaneshSurface(GaneshContext* context,
desc.fConfig = kSkia8888_GrPixelConfig;
desc.fOrigin = kTopLeft_GrSurfaceOrigin;
desc.fTextureHandle = texture_->texture_id();
+ DCHECK(texture_->texture_id());
auto gr_texture = skia::AdoptRef(context->gr()->wrapBackendTexture(desc));
DCHECK(gr_texture);
« no previous file with comments | « mojo/gpu/gl_context_owner.h ('k') | sky/compositor/layer_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698