Make sure the Image texture provider does not return an atlassed texture
authorGunnar Sletta <gunnar.sletta@nokia.com>
Wed, 5 Oct 2011 07:38:32 +0000 (09:38 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 5 Oct 2011 10:36:15 +0000 (12:36 +0200)
commitcd8c7b1c3c4f743bda9b66ef7840606a20e7b9cf
tree6119d091782428e8e03570110d2b7b49e4405cd8
parent40c9607befb1cce6ef771dc9bd77ac91a7e1f3b4
Make sure the Image texture provider does not return an atlassed texture

This has the implication that textures from texture providers are always
the complete texture with coordinates from 0-1, which is means we get
a copy for atlas textures which may end up affecting performance.

Alternatives are:
 - ShaderEffect does this, which means texture providers can provide
   atlas textures.
 - We expose the subrect to ShaderEffect, which means an API
   change in all shader effect classes, and let the vertex shader
   solve this. Worst API, fastest and most memory efficient.

Change-Id: Id58eb866f315012637345a6f731626abf4a7a86c
Reviewed-on: http://codereview.qt-project.org/6029
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
src/declarative/items/qsgimage.cpp
src/declarative/scenegraph/util/qsgtexture.cpp
src/declarative/scenegraph/util/qsgtexture.h