本文整理汇总了C++中BackingStoreClient::backingStore方法的典型用法代码示例。如果您正苦于以下问题:C++ BackingStoreClient::backingStore方法的具体用法?C++ BackingStoreClient::backingStore怎么用?C++ BackingStoreClient::backingStore使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BackingStoreClient
的用法示例。
在下文中一共展示了BackingStoreClient::backingStore方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: transitionToCommittedForNewPage
void FrameLoaderClientBlackBerry::transitionToCommittedForNewPage()
{
m_cancelLoadOnNextData = false;
// In Frame::createView, Frame's FrameView object is set to 0 and recreated.
// This operation is not atomic, and an attempt to blit contents might happen
// in the backing store from another thread (see BackingStorePrivate::blitContents method),
// so we suspend and resume screen update to make sure we do not get a invalid FrameView
// state.
BackingStoreClient* backingStoreClientForFrame = m_webPagePrivate->backingStoreClientForFrame(m_frame);
if (backingStoreClientForFrame)
backingStoreClientForFrame->backingStore()->d->suspendScreenAndBackingStoreUpdates();
// We are navigating away from this document, so clean up any footprint we might have.
if (m_frame->document())
m_webPagePrivate->clearDocumentData(m_frame->document());
Color backgroundColor(m_webPagePrivate->m_webSettings->backgroundColor());
m_frame->createView(m_webPagePrivate->viewportSize(), /* viewport */
backgroundColor, /* background color */
backgroundColor.hasAlpha(), /* is transparent */
m_webPagePrivate->actualVisibleSize(), /* fixed reported size */
m_webPagePrivate->fixedLayoutSize(), /* fixed layout size */
m_webPagePrivate->useFixedLayout(), /* use fixed layout */
ScrollbarAlwaysOff, /* hor mode */
true, /* lock the mode */
ScrollbarAlwaysOff, /* ver mode */
true); /* lock the mode */
if (backingStoreClientForFrame)
backingStoreClientForFrame->backingStore()->d->resumeScreenAndBackingStoreUpdates(BackingStore::None);
m_frame->view()->updateCanHaveScrollbars();
if (isMainFrame()) {
// Since the mainframe has a tiled backingstore request to receive all update
// rects instead of the default which just sends update rects for currently
// visible viewport.
m_frame->view()->setPaintsEntireContents(true);
}
}