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

Unified Diff: examples/ui/spinning_cube/spinning_cube_view.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 | « no previous file | mojo/dart/packages/mojo_services/lib/mojo/gfx/composition/resources.mojom.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/ui/spinning_cube/spinning_cube_view.cc
diff --git a/examples/ui/spinning_cube/spinning_cube_view.cc b/examples/ui/spinning_cube/spinning_cube_view.cc
index 294d328d5af015ec9964ab503ad3924b05ef094f..7b090b68fe65a2480a1c9e301c35124f417dae83 100644
--- a/examples/ui/spinning_cube/spinning_cube_view.cc
+++ b/examples/ui/spinning_cube/spinning_cube_view.cc
@@ -163,10 +163,6 @@ void SpinningCubeView::OnDraw(
auto root_node = mojo::gfx::composition::Node::New();
root_node->content_transform = mojo::Transform::New();
mojo::SetIdentityTransform(root_node->content_transform.get());
- // TODO(jeffbrown): Figure out why spinning cube is drawing upside down.
- // Other GL based programs don't seem to have this problem.
- root_node->content_transform->matrix[5] = -1; // flip image vertically
- root_node->content_transform->matrix[7] = size_.height;
root_node->op = mojo::gfx::composition::NodeOp::New();
root_node->op->set_image(mojo::gfx::composition::ImageNodeOp::New());
root_node->op->get_image()->content_rect = bounds.Clone();
« no previous file with comments | « no previous file | mojo/dart/packages/mojo_services/lib/mojo/gfx/composition/resources.mojom.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698