08-16-2012 04:22 PM
Does changing SCREEN_PROPERTY_USAGE and/or SCREEN_PROPERTY_BUFFER_SIZE require buffers to be destroyed and recreated?
Solved! Go to Solution.
08-16-2012 04:28 PM
From EB, Technical Lead for Graphics:
Changing the buffer size usually means new buffers, but the old ones don't have to be destroyed. Otherwise, you would get a flash on the screen (no buffers means the window can't be visible). After changing the usage or size you simply have to query the render buffers and you will get new handles. The old buffers are kept until you post content on one of the new buffers. Afterwards the old buffers are reaped automatically. You don't have to destroy them explicitly.
The cases where changing the usage doesn't require new buffers:
* new usage has fewer bits than old usage
* new usage only has read/write as extra bits
The cases where changing the buffer size doesn't require new buffers:
* new width is old height and new height is old width and usage had rotation bit set
08-16-2012 04:48 PM
I am a bit confused - have you answered your own question? How come EB tells RIM how to use API?
08-16-2012 05:05 PM
Please be assured that this reply is from RIM, EB being our Technical Lead for Graphics here at RIM. I have just copied an exchange between him and me here instead of summarizing it for you; very sorry for that and the confusion this has caused.
08-16-2012 05:08 PM
Oh, then great! Thank you very much! -)
08-16-2012 06:21 PM
08-18-2012 06:40 PM
08-21-2012 05:25 PM
Yes, SCREEN_PROPERTY_FORMAT is also covered under the same "after changing the property, it will be applied when the buffers are retrieved".