Enable threaded/immediate rendering for FBO(step 1)
authorCharles Yin <charles.yin@nokia.com>
Thu, 17 May 2012 23:58:09 +0000 (09:58 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 31 May 2012 00:23:02 +0000 (02:23 +0200)
commitfdbb1f1b4f43a961d66998a1125f5e11618ed025
tree1f8db88458bd6f837492bc9ddc26fbc9278c3c48
parent447e5acb880ebda498891623dc4009984cb73bc6
Enable threaded/immediate rendering for FBO(step 1)

1. Create a new gl context if the scenegraph render thread is different with context2d render thread
2. Expose the gl context and window surface from context2d
3. Get the right current gl context before painting

Change-Id: I5e252a8142d760442f9dfb53ed8a8ce289379af9
Reviewed-by: Glenn Watson <glenn.watson@nokia.com>
src/quick/items/context2d/qquickcontext2d.cpp
src/quick/items/context2d/qquickcontext2d_p.h
src/quick/items/context2d/qquickcontext2dtexture.cpp