|
Mozart: Specify texture origin explicitly.
Previously we assumed the origin was always top-left but OpenGL
likes to create textures with the origin in the bottom-left.
Since we don't always get what we want in this life, let the client
specify what origin it used. Maybe later we can grumble about it
and replace (or augment) this with a more general means of specifying
texture coordinates or texture matrices for rendering.
Flipping the node's coordinate system upside-down in Spinning Cube
has undesirable consequences on the input dispatch (since the events
get flipped too, as expected) so it was time to remove the old hack
and resolve the origin problem.
BUG=
R=abarth@google.com
Committed: https://chromium.googlesource.com/external/mojo/+/bae77abe00df82bc66c7febfba7b8c5104f96ec9
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+134 lines, -17 lines) |
Patch |
 |
M |
examples/ui/spinning_cube/spinning_cube_view.cc
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
mojo/dart/packages/mojo_services/lib/mojo/gfx/composition/resources.mojom.dart
|
View
|
1
|
4 chunks |
+69 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/services/gfx/composition/cpp/formatting.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/services/gfx/composition/cpp/formatting.cc
|
View
|
|
1 chunk |
+14 lines, -1 line |
0 comments
|
Download
|
 |
M |
mojo/services/gfx/composition/interfaces/resources.mojom
|
View
|
|
2 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/skia/ganesh_image_factory.h
|
View
|
|
4 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
mojo/skia/ganesh_image_factory.cc
|
View
|
|
4 chunks |
+7 lines, -4 lines |
0 comments
|
Download
|
 |
M |
mojo/ui/ganesh_renderer.cc
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
mojo/ui/gl_renderer.h
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
mojo/ui/gl_renderer.cc
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
services/gfx/compositor/graph/scene_def.cc
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
services/gfx/compositor/render/render_image.h
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
services/gfx/compositor/render/render_image.cc
|
View
|
|
2 chunks |
+13 lines, -3 lines |
0 comments
|
Download
|
Depends on Patchset:
Dependent Patchsets:
Total messages: 5 (2 generated)
|