OLD | NEW |
1 # Platform paint code | 1 # Platform paint code |
2 | 2 |
3 This directory contains the implementation of display lists and display | 3 This directory contains the implementation of display lists and display |
4 list-based painting, except for code which requires knowledge of `core/` | 4 list-based painting, except for code which requires knowledge of `core/` |
5 concepts, such as DOM elements and layout objects. | 5 concepts, such as DOM elements and layout objects. |
6 | 6 |
7 This code is owned by the [paint team][paint-team-site]. | 7 This code is owned by the [paint team][paint-team-site]. |
8 | 8 |
9 Slimming Paint v2 is currently being implemented. Unlike Slimming Paint v1, SPv2 | 9 Slimming Paint v2 is currently being implemented. Unlike Slimming Paint v1, SPv2 |
10 represents its paint artifact not as a flat display list, but as a list of | 10 represents its paint artifact not as a flat display list, but as a list of |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 for each paint chunk. In the future, it is expected that we will use heuristics | 256 for each paint chunk. In the future, it is expected that we will use heuristics |
257 to combine paint chunks into a smaller number of layers. | 257 to combine paint chunks into a smaller number of layers. |
258 | 258 |
259 The owner of the `PaintArtifactCompositor` (e.g. `WebView`) can then attach its | 259 The owner of the `PaintArtifactCompositor` (e.g. `WebView`) can then attach its |
260 root layer to the overall layer hierarchy to be displayed to the user. | 260 root layer to the overall layer hierarchy to be displayed to the user. |
261 | 261 |
262 ## Geometry routines | 262 ## Geometry routines |
263 | 263 |
264 The [`GeometryMapper`](GeometryMapper.h) is responsible for efficiently computin
g | 264 The [`GeometryMapper`](GeometryMapper.h) is responsible for efficiently computin
g |
265 visual and transformed rects of display items in the coordinate space of ancesto
r | 265 visual and transformed rects of display items in the coordinate space of ancesto
r |
266 [`GeometryPropertyTreeState`](GeometryPropertyTreeState.h)s. | 266 [`PropertyTreeState`](PropertyTreeState.h)s. |
267 | 267 |
268 The transformed rect of a display item in an ancestor `GeometryPropertyTreeState
` | 268 The transformed rect of a display item in an ancestor `PropertyTreeState` is |
269 is that rect, multiplied by the transforms between the display item's | 269 that rect, multiplied by the transforms between the display item's |
270 `GeometryPropertyTreeState` and the ancestors, then flattened into 2D. | 270 `PropertyTreeState` and the ancestors, then flattened into 2D. |
271 | 271 |
272 The visual rect of a display item in an ancestor `GeometryPropertyTreeState` is | 272 The visual rect of a display item in an ancestor `PropertyTreeState` is the |
273 the intersection of all of the intermediate clips (transformed in to the | 273 intersection of all of the intermediate clips (transformed in to the ancestor |
274 ancestor state), with the display item's transformed rect. | 274 state), with the display item's transformed rect. |
OLD | NEW |