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

Unified Diff: mojo/ui/gl_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/ui/gl_renderer.h ('k') | services/gfx/compositor/graph/scene_def.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/ui/gl_renderer.cc
diff --git a/mojo/ui/gl_renderer.cc b/mojo/ui/gl_renderer.cc
index 3adf50782b78f6f03ce575fe9ca7ca7bfe71176d..3e60c82b06d0dc4a24431d4eb5be8bb6da8f7e8a 100644
--- a/mojo/ui/gl_renderer.cc
+++ b/mojo/ui/gl_renderer.cc
@@ -45,7 +45,8 @@ std::unique_ptr<mojo::GLTexture> GLRenderer::GetTexture(
}
mojo::gfx::composition::ResourcePtr GLRenderer::BindTextureResource(
- std::unique_ptr<GLTexture> texture) {
+ std::unique_ptr<GLTexture> texture,
+ mojo::gfx::composition::MailboxTextureResource::Origin origin) {
if (!gl_context_)
return nullptr;
@@ -67,6 +68,7 @@ mojo::gfx::composition::ResourcePtr GLRenderer::BindTextureResource(
sizeof(mailbox));
resource->get_mailbox_texture()->sync_point = sync_point;
resource->get_mailbox_texture()->size = texture->size().Clone();
+ resource->get_mailbox_texture()->origin = origin;
resource->get_mailbox_texture()->callback =
(new GLTextureReleaser(
weak_factory_.GetWeakPtr(),
« no previous file with comments | « mojo/ui/gl_renderer.h ('k') | services/gfx/compositor/graph/scene_def.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698