diff options
author | Gunnar Sletta <gunnar.sletta@nokia.com> | 2012-01-09 08:43:34 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-13 09:27:22 +0100 |
commit | c3b4d679684434d318c75474f426d5c61a4b239c (patch) | |
tree | 4f512ff74a2ab1fa957db2a123c447156a83df69 /src/quick/scenegraph/qsgcontext.cpp | |
parent | c194b012182c3ae495bb7a740f02a5a9f5b3c3b3 (diff) |
Reintroduce plugin support for asynchronous hardware specific textures
Change-Id: Iad36542d2137e7a6470009c308ece3de389907c1
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/quick/scenegraph/qsgcontext.cpp')
-rw-r--r-- | src/quick/scenegraph/qsgcontext.cpp | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/src/quick/scenegraph/qsgcontext.cpp b/src/quick/scenegraph/qsgcontext.cpp index 5af7c76b16..cad2cb09c8 100644 --- a/src/quick/scenegraph/qsgcontext.cpp +++ b/src/quick/scenegraph/qsgcontext.cpp @@ -300,47 +300,6 @@ QSGRenderer *QSGContext::createRenderer() -/*! - Return true if the image provider supports direct decoding of images, - straight into textures without going through a QImage first. - - If the implementation returns true from this function, the decodeImageToTexture() function - will be called to read data from a QIODevice, rather than QML decoding - the image using QImageReader and passing the result to setImage(). - - \warning This function will be called from outside the GUI and rendering threads - and must not make use of OpenGL. - */ - -bool QSGContext::canDecodeImageToTexture() const -{ - return false; -} - - - -/*! - Decode the data in \a dev directly to a texture provider of \a requestSize size. - The size of the decoded data should be written to \a impsize. - - If the implementation fails to decode the image data, it should return 0. The - image data will then be decoded normally. - - \warning This function will be called from outside the GUI and renderer threads - and must not make use of GL calls. - */ - -QSGTexture *QSGContext::decodeImageToTexture(QIODevice *dev, - QSize *size, - const QSize &requestSize) -{ - Q_UNUSED(dev); - Q_UNUSED(size); - Q_UNUSED(requestSize); - return 0; -} - - QSurfaceFormat QSGContext::defaultSurfaceFormat() const { |