Closed Bug 834876 Opened 12 years ago Closed 12 years ago

[layers-refactoring] Use texture coords in Effects rather than texture/source rects in Compositor::DrawQuad

Categories

(Core :: Graphics: Layers, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: nrc, Unassigned)

References

Details

(Whiteboard: [metro-gfx])

No description provided.
If we do this we have to expose a lot of crap out of the compositor. Check out LayerManagerOGL::BindAndDrawQuadWithTextureRect. We would need to know about the compositor's ability to do/not do non power of two textures and that we optimise non-repeat textures by breaking them into triangles, which really seems like stuff that should be kept in the compositor. We always know the texture size and source rect, so I don't see the problem with keeping them as the interface to the compositor.
We can always use (0, 0, 1, 1) for the texture rect and texture coords for the source rect, if you want a texture coords kind of interface.
Looks like Bas has done this.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Blocks: metro-omtc
Blocks: 849261
No longer blocks: metro-omtc
You need to log in before you can comment on or make changes to this bug.