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

Unified Diff: mojo/ui/ganesh_renderer.cc

Issue 1776643004: Mozart: Specify texture origin explicitly. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-3
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 | « mojo/skia/ganesh_image_factory.cc ('k') | mojo/ui/gl_renderer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/ui/ganesh_renderer.cc
diff --git a/mojo/ui/ganesh_renderer.cc b/mojo/ui/ganesh_renderer.cc
index a1f47b3778053f4920d4ff75c0280ce90bec25a1..05873056ad8cb737f61833240c864e2e98dc60ed 100644
--- a/mojo/ui/ganesh_renderer.cc
+++ b/mojo/ui/ganesh_renderer.cc
@@ -38,7 +38,9 @@ mojo::gfx::composition::ResourcePtr GaneshRenderer::DrawSurface(
texture = texture_surface.TakeTexture();
}
- return gl_renderer_.BindTextureResource(std::move(texture));
+ return gl_renderer_.BindTextureResource(
+ std::move(texture),
+ mojo::gfx::composition::MailboxTextureResource::Origin::TOP_LEFT);
}
static void RunCanvasCallback(
« no previous file with comments | « mojo/skia/ganesh_image_factory.cc ('k') | mojo/ui/gl_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698