Tiled backing Store (i)

Source: Internet
Author: User

1. OverviewThe following picture explains what the tiled backing Store is from a hierarchical perspective:


  • Viewport View Port: Represents the area used to display Web page content. QT, in fact, is Qwidget.

  • tiled backing store: can be seen as a buffer of off-screen pixmap. For scrolling, zooming, and smoothing, the area it covers is always larger than viewport.

  • Covered Content: Represents the contents of a page that is covered by the tiled backing store. This section can be scaled if needed.

  • Page content: Refers to the entire frame content rendered by WebKit.
Refer to Qtwebkittiling For more information on tiled backing store technology.
2. Tiled backing StoreThe following figure shows the relationship of Tiledbackingstore in Qtwebkit and tile, Tiledbackingstoreclient,frame:


2.1 Tilewhen you draw a Web page to a UI widget, the tile is the smallest drawing unit. Each tile is indexed by coordinates. The layout of the tile can be mapped to a 2-dimensional matrix. For example, the upper left can be indexed by (0,0), and so on.

Tiles can be set to be invalid. If the Webcore::frameview performs a layout operation, the invalid operation will be called. Invalid operation the only thing to do is to calculate the dirty areas caused by repainting, which are later drawn by the QT brush.

Tiles are double-buffered, which makes it possible to avoid flickering problems when drawing.

2 Pixmap buffers are maintained by tiles. In the current implementation of QT, all buffers are updated simultaneously, so there is no need for a separate front and back buffer (translator Note: No need for double buffering)

Tiled backing Store (i)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.