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

Unified Diff: mojo/ui/gl_renderer.h

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/ui/ganesh_renderer.cc ('k') | mojo/ui/gl_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/ui/gl_renderer.h
diff --git a/mojo/ui/gl_renderer.h b/mojo/ui/gl_renderer.h
index a21c799fb9b792a0d389b2b7322880062289af8c..71cf0d96953080042a6d7b924f4ab823c64b4793 100644
--- a/mojo/ui/gl_renderer.h
+++ b/mojo/ui/gl_renderer.h
@@ -47,7 +47,9 @@ class GLRenderer {
// The caller should add the resource to its scene.
// Returns a nullptr if the GLContext was destroyed.
mojo::gfx::composition::ResourcePtr BindTextureResource(
- std::unique_ptr<GLTexture> texture);
+ std::unique_ptr<GLTexture> texture,
+ mojo::gfx::composition::MailboxTextureResource::Origin origin =
+ mojo::gfx::composition::MailboxTextureResource::Origin::BOTTOM_LEFT);
// Allocates a GL texture, binds it to a framebuffer, invokes the
// provided function, then returns the resulting resource.
« no previous file with comments | « mojo/ui/ganesh_renderer.cc ('k') | mojo/ui/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698