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

Unified Diff: services/gfx/compositor/graph/scene_def.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.cc ('k') | services/gfx/compositor/render/render_image.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/gfx/compositor/graph/scene_def.cc
diff --git a/services/gfx/compositor/graph/scene_def.cc b/services/gfx/compositor/graph/scene_def.cc
index 649c43e8a76ee6362758014d5682353dbe847602..1a8e4efbdc7ec449786532afb0b34dbaa5823353 100644
--- a/services/gfx/compositor/graph/scene_def.cc
+++ b/services/gfx/compositor/graph/scene_def.cc
@@ -193,9 +193,11 @@ scoped_refptr<const ResourceDef> SceneDef::CreateResource(
const GLbyte* const mailbox_name = reinterpret_cast<GLbyte*>(
mailbox_texture_resource_decl->mailbox_name.data());
const GLuint sync_point = mailbox_texture_resource_decl->sync_point;
+ const mojo::gfx::composition::MailboxTextureResource::Origin origin =
+ mailbox_texture_resource_decl->origin;
std::shared_ptr<RenderImage> image = RenderImage::CreateFromMailboxTexture(
- mailbox_name, sync_point, width, height,
+ mailbox_name, sync_point, width, height, origin,
base::MessageLoop::current()->task_runner(),
base::Bind(
&ReleaseMailboxTexture,
« no previous file with comments | « mojo/ui/gl_renderer.cc ('k') | services/gfx/compositor/render/render_image.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698