Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
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 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 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".